Skip site navigation (1) Skip section navigation (2)

Conditional operators ALL, ANY in WHERE clause

From: "Vladimir V(dot) Zolotych" <gsmith(at)eurocom(dot)od(dot)ua>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Conditional operators ALL, ANY in WHERE clause
Date: 2001-09-03 08:30:32
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

The following is the quote describing WHERE clause of SELECT

"WHERE Clause 

The optional WHERE condition has the general form: 

WHERE boolean_expr

boolean_expr can consist of any expression which evaluates to a boolean value. In many cases,
this expression will be: 

     expr cond_op expr


     log_op expr

where cond_op can be one of: =, <, <=, >, >= or <>, a conditional operator like ALL, ANY, IN,
LIKE, or a locally defined operator, and log_op can be one of: AND, OR, NOT. SELECT will ignore
all rows for which the WHERE condition does not return TRUE. "

Please give me hints how can I use "conditional operators ALL, ANY" in
WHERE clause.

Some examples will be appreciated.

Thanks in advance.

Vladimir Zolotych                         gsmith(at)eurocom(dot)od(dot)ua

pgsql-hackers by date

Next:From: Henshall, Stuart - WCPDate: 2001-09-03 09:03:55
Subject: Re: Porting to Native WindowsNT/2000
Previous:From: Christopher Kings-LynneDate: 2001-09-03 02:56:59
Subject: Re: INTERVAL type: SQL92 implementation

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group