Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySql not recognising "EXISTS" keyword 1

Status
Not open for further replies.
Apr 29, 2003
2
GB
Hi,

I'm trying to run the following query:

SELECT DISTINCT DataRecordID FROM ShortTextData WHERE NOT EXISTS (SELECT ContentElementID FROM ContentElements WHERE ShortTextData.ContentElementID=ContentElements.ContentElementID)

MySql is saying:

ERROR [42000] [MySQL][ODBC 3.51 Driver][mysqld-4.0.14-nt]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 ContentElementID FROM ContentElements WHERE Shor

What's going on here? I was under the impression that 4.0.14 supports sub queries. Am I missing something?

Cheers,
Rob Shields
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top