Sorry,

MySQL does not yet support sub-selects.

Cal
http://www.calevans.com


-----Original Message-----
From: Budiono Tjiayono [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 6:17 AM
To: [EMAIL PROTECTED]
Subject: Exists and Not exists


Hi there,
I am a mysql newbie. Is there anybody that can help me solve this code, so
that it can run on mysql


$sql="CREATE TEMPORARY TABLE tempingr SELECT resepid FROM resep r WHERE NOT
EXISTS
                 (SELECT * FROM what_ingr w WHERE w.resepid=r.resepid and
NOT EXISTS
                     (SELECT * FROM Temp_Ingredient t WHERE
t.selectedingr=w.ingrid))";
 $results=mysql_query($sql, $con) or die("Can't retrieve data from database,
please contact the author");


Thanks you.

Budi


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to