Thread: How to Select with more than one AND in a Where SQL Clause?
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
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 BerkusAglio Database SolutionsSan Francisco