MySQL Forums
Forum List  »  InnoDB

UPDATE with SELECT
Posted by: Mike Blanc
Date: May 05, 2005 01:18AM

Hi,

I need to update a field from a query.

This doesn't seems to work :

UPDATE table1 SET field1 = ( SELECT field2 FROM table2 WHERE table1.Id = table2.Id )

What is the best way to do something like that ?

Thanks,
Mike

Options: ReplyQuote


Subject
Views
Written By
Posted
UPDATE with SELECT
3236
May 05, 2005 01:18AM
2228
May 20, 2005 02:06PM


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.