Richard,
Thursday, March 28, 2002, 5:19:03 PM, you wrote:
RM> I am trying to do a table update. The table I am updating is a results
RM> table.
RM> I have constructed a query, however, it doesn't seem to work because in the
RM> where statement I need to refer to a different table:
RM> update contact, result set result.department='rd' where
RM> result.fk_contactid=contact.contactid AND SvrID=1 AND ChannelNumber=1 AND
result.score>=40 AND result.score<70 AND contact.department='rd'
MySQL doesn't currently support multitable updates in a single
command. If you want to update a single row in the table you can use
user variables, look at:
http://www.mysql.com/doc/V/a/Variables.html
RM> Any ideas how I can achieve this ?
RM> Thanks for your help.
RM> Richard
--
For technical support contracts, goto https://order.mysql.com/
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Victoria Reznichenko
/ /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED]
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
<___/ www.mysql.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