sql两个表联合更新

update TableA set id=TableB.id from TableA,TableB where TableA.name=TableB.name
原文地址:https://www.cnblogs.com/wupeihong/p/4727929.html