update table1
set field1=table2.field1,
field2=table2.field2
from table2
where table1.id=table2.id
update chq_gx_empinfo set
deptzz = chq_gx_empinfo2.deptzz,deptname =chq_gx_empinfo2.deptname
from chq_gx_empinfo2 where chq_pno = chq_pno
and chq_pno in ('CHQS2076','CHQS1959')
update table1
set field1=(select top 1 field1 from table2 where table2.id=table1.id)
where table1.id in (condition)记住我
发布评论