update ... fromis the syntax of the SQL server. In MySQL, you can simply use multiple tables directly:
update
table1 t1
join table2 t2 on t2.field = t1.field
set
t1.field1 = t2.matchingfield
where
t1.whatever = t2.whatever
Everything is described in detail on the MySQL help page .
source
share