Hi. MySQL doesn't (yet) suport sub-queries. For further information have a look at http://www.mysql.com/doc/A/N/ANSI_diff_Sub-selects.html.
Bye, Benjamin. On Thu, Nov 29, 2001 at 12:07:01AM -0500, [EMAIL PROTECTED] wrote: > > Hi all, > > I wanna try the following query, > > ============================================= > select concat( > "update product set price=", > p2.price, > " where id=", > p1.id, > ";" > ) > from product p1 left join product p2 > on p1.name=p2.name > where p1.price = 0 and p2.price>0; > [...] -- [EMAIL PROTECTED] --------------------------------------------------------------------- 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