Re: How to Select with more than one AND in a Where SQL Clause?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "Zenith Vivas" <zenithvivas(at)hotmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: How to Select with more than one AND in a Where SQL Clause?
Date: 2002-08-29 18:59:08
Message-ID: 200208291159.08806.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2002-08-29 19:06:26 Re: record count
Previous Message Marie G. Tuite 2002-08-29 18:37:40 record count