通过B表字段更新A表

 update a set a.name=b.name from b

where a.id=b.id

原文地址:https://www.cnblogs.com/tony312ws/p/2530777.html