SQL: Update from multiple tables
From: Okey Laboratory <N/A>
Date: Mon, 30 Dec 2002 20:23:26 GMT
Message-ID: <H7y8o5.9ws_at_campus-news-reading.utoronto.ca>
Date: Mon, 30 Dec 2002 20:23:26 GMT
Message-ID: <H7y8o5.9ws_at_campus-news-reading.utoronto.ca>
UPDATE T1, T2
SET T1.Field2 = T2.Field2 WHERE T1.Field1 = T2.Field1 AND T1.Field3 = T2.Field3
Of course I can't specify multiple tables in the UPDATE clause. I *SWEAR*
I've solved this problem in a reasonably efficient manner in the past, but I
can't seem to find a work-around now. Any suggestions?
Tats
Received on Mon Dec 30 2002 - 21:23:26 CET