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: 3B933FA8.2322D161@eurocom.od.ua (view raw or flat)
Thread:
Lists: pgsql-hackers
Hi

The following is the quote describing WHERE clause of SELECT
(pgsql/doc/html/sql-select.html).

"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
    

or 

     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-2014 The PostgreSQL Global Development Group