sql server 多表之间的update

UPDATE A
SET CompanyCode = b.CompanyCode
FROM A a,B b
where a.TaxNumber=b.TaxNumber
and b.sysno is not null
and a.CompanyCode!=b.CompanyCode

posted @ 2019-12-24 15:12  小确幸123  阅读(1170)  评论(0编辑  收藏  举报