From: Josh Berkus <josh@agliodbs.com>
To: Zenith Vivas <zenithvivas@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to Select with more than one AND in a Where SQL Clause?
Date: Thu, 29 Aug 2002 11:59:08 -0700
Message-ID: <200208291159.08806.josh@agliodbs.com> (raw)
In-Reply-To: <F193T8A943W4Kpvh7ZZ0000547b@hotmail.com>
References: <F193T8A943W4Kpvh7ZZ0000547b@hotmail.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 Berkus
Aglio Database Solutions
San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, zenithvivas@hotmail.com
Subject: Re: How to Select with more than one AND in a Where SQL Clause?
In-Reply-To: <200208291159.08806.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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