MySQL Forums
Forum List  »  General

Re: UPDATE multiple tables with one UPDATE statement
Posted by: Peter Brawley
Date: April 26, 2006 12:48PM

UPDATE a
INNER JOIN b USING (id)
SET a.firstname='Pekka', a.lastname='Kuronen',
b.companyname='Suomi Oy',companyaddress='Mannerheimtie 123, Helsinki Suomi'
WHERE a.id=1;

PB

Options: ReplyQuote


Subject
Written By
Posted
Re: UPDATE multiple tables with one UPDATE statement
April 26, 2006 12:48PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.