SQL 两表关联更新UPDATE (用一个表更新另一个表)
方法一:
update
table1
set
field1=table2.field1
from
table2
where
table1.id=table2.id
--简写
update
t1
set
t1.c2 = t2.c2
from
t2
where
t1.c1 = t2.c1
方法二:
update
table1
set
field1=(
select
top
1 field1
from
table2
where
table2.id=table1.id)
where
table1.id
in
(condition)
玉环人才吧
玉环人才网
玉环人力网
玉环招聘网
三支脚人才网
玉环人力网(又名玉环人才网)是玉环人才吧旗下一流的玉环人力资源招聘行业服务品牌,汇集海量玉环人才,开放玉环人才简历和玉环岗位,提供玉环招聘网,玉环人才市场动态行情,玉环劳务派遣,玉环培训等,是玉环最大的人才网站。