hi list,
can mysql allow table joins when using UPDATE query? like
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
TIA
johnhomer
__________________________________
www.edsamail.com
---------------------------------------------------------------------
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