JohnHomer wrote: > can mysql allow table joins when using UPDATE query? like
The manual answers these questions. > update tranfer left join transferdetails > on transfer.docno = transferdetails.docno > set transferdetails.docno = concat('SJ',transferdetails.DocNo) > where > transferdetails.docno not regexp '^SJ' and > lower(xfrom) = 'san juan'; > > i get an error > > ERROR 1064 at line 1: You have an error in your SQL syntax near 'left join trans >ferdetails on transfer.docno = transferdetails.docno set transfer' at line 1 > > im using mysql 3.23.41 on win32 The manual states clearly that 3.23 does not support joins with UPDATE. And RTM to find out if 4.0 does. b. --------------------------------------------------------------------- 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