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

原文地址:https://www.cnblogs.com/amusement1992/p/12091634.html