1、
update
a
inner
join
b
on
a.id=b.id
set
a.
name
=b.
where
...
2、
table1
= b.
from
table1 a
table2 b
a.id =b.id