List:General Discussion« Previous MessageNext Message »
From:Lucio Crusca Date:May 31 2005 3:26pm
Subject: EXISTS
View as plain text  
Hello everybody.

I use mysql 4.0.24 as found in debian gnu/linux sarge.

$ mysql -u root
[...]
mysql> use mydb
[...]

Database changed
mysql> select * from SAMPLES S1 where exists (select * from SAMPLES S2 where
S1.ID = S2.ID);

ERROR 1064: You have an error in your SQL syntax.  Check the manual that
corresponds to your MySQL server version for the right syntax to use near
'exists (select * from SAMPLES S2 where S1.ID = S2.ID)' at line

What's wrong with my query? Obviously the table SAMPLES and its column ID
exist.

TIA,
Lucio.

Thread
EXISTSLucio Crusca1 Jun
  • Re: EXISTSFelix Geerinckx1 Jun
    • Re: EXISTSAnoop kumar V1 Jun