sql server:
update a
set a.表1字段 = b.表2字段
from 表1 a left join 表2 b on a.表1关联字段 = b.表2关联字段
where 条件
oracle:
merge info 表1 a
using (select b.表2关联字段, b.表2字段 from 表2 b) t
on (a.表1关联字段 = t.表2关联字段)
when matched then
update set a.表1字段 = t.表2字段
where 条件
commit;
mysql:
update 表1 a left join 表2 b on a.表1关联字段 = b.表2关联字段 set a.表1字段 = b.表2字段 where 条件;