Forum Moderators: coopster

Message Too Old, No Replies

mySQL subqueries

         

topr8

11:54 am on Oct 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



quote from manual:
Up to version 4.0, only nested queries of the form INSERT ... SELECT ... and REPLACE ... SELECT ... are supported. The IN() construct can be used in other contexts.

i assume this means that i cannot to this:

select col from table1 where col IN ( select d from table2)

but i can do this:

select col from table1 where col IN (1,2,3)

eg i can list the values but not use a select statement

coopster

12:09 pm on Oct 22, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



That is correct. Unless your MySQL version is >= 4.0 :)