From: cnliou@eurosport.com
To: pgsql-sql@postgresql.org
Subject: EXISTS Keyword
Date: Thu, 4 Oct 2001 01:18:53 GMT
Message-ID: <200110040118.3520@lh00.opsion.fr> (raw)
Hello!
I vaguely remember that someone said somewhere that
EXISTS runs faster than IN:
SELECT * FROM table1 where field1 EXISTS (SELECT
field4 FROM table2)
However, all I got from version 7.1.3 is:
ERROR: parser: parse error at or near "exists"
While below works:
SELECT * FROM table1 where field1 IN (SELECT field4
FROM table2)
Any key points I have missed?
CN
--------------------------------------------------------
You too can have your own email address from Eurosport.
http://www.eurosport.com
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: cnliou@eurosport.com
Subject: Re: EXISTS Keyword
In-Reply-To: <200110040118.3520@lh00.opsion.fr>
* 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