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!

SQL Subquery

Status
Not open for further replies.

ianicr

IS-IT--Management
Nov 4, 2003
230
GB
I'm running mysql 4.0.16 on XP trying to do both or either of these queries from the mysql manual:
SELECT s1 FROM t1 WHERE s1 = ANY (SELECT s1 FROM t2);
SELECT s1 FROM t1 WHERE s1 IN (SELECT s1 FROM t2);
however I get a syntax error with the query in the brackets. Anyone know why?
 
How stable is 4.1? I know its still in alpha but is it useable? Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top