标签:
用表B的数据(mc列)更新表A的mc列
update A SET A.mc = b.mc FROM A ,B WHERE A.bmbh = B.bmbh and A.xmbh = B.xmbh;
update A, B set A.mc = B.mc where A.bmbh = B.bmbh and A.xmbh = B.xmbh;
或者
update A INNER JOIN B ON A.bmbh = B.bmbh AND A.xmbh = B.xmbh SET A.mc = B.mc;
标签:
原文地址:http://www.cnblogs.com/kongxiaoshuang/p/5911749.html