pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: How to Select with more than one AND in a Where SQL  Clause?
2+ messages / 2 participants
[nested] [flat]

* Re: How to Select with more than one AND in a Where SQL  Clause?
@ 2002-08-29 18:59  Josh Berkus <josh@agliodbs.com>
  parent: Zenith Vivas <zenithvivas@hotmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Josh Berkus @ 2002-08-29 18:59 UTC (permalink / raw)
  To: Zenith Vivas <zenithvivas@hotmail.com>; pgsql-sql


Zenith,

> Qry = "Select * from Table Where A1 Like '%' AND A2 Like '%' AND A3 Like '%' 
> AND A4 Like '%' AND A5 Like '%'"
> 
> But in spite of I need a SQL sentence with four (04) AND's in its Where 
> clause, my SQL compiler only allow me using one AND.
> 
> So How can I solve such a problem.

This is not a PostgreSQL problem, it is a problem with whatever program you're 
using.   Use different database tools, or access PostgreSQL directly through 
PSQL.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* How to Select with more than one AND in a Where SQL  Clause?
@ 2002-08-29 19:20  Zenith Vivas <zenithvivas@hotmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Zenith Vivas @ 2002-08-29 19:20 UTC (permalink / raw)
  To: pgsql-sql

Dear friends,
I need a SQL sentence like this:

Qry = "Select * from Table Where A1 Like '%' AND A2 Like '%' AND A3 Like '%' 
AND A4 Like '%' AND A5 Like '%'"

But in spite of I need a SQL sentence with four (04) AND's in its Where 
clause, my SQL compiler only allow me using one AND.

So How can I solve such a problem.

Many thanks in advance!

Zenith Vivas













_________________________________________________________________
Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-08-29 19:20 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-08-29 19:20 How to Select with more than one AND in a Where SQL  Clause? Zenith Vivas <zenithvivas@hotmail.com>
2002-08-29 18:59 ` Josh Berkus <josh@agliodbs.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox