联表更新

mysql:

update A,B set A.c1= B.c1
where A.id = B.id

 

sqlserver:

update A SET A.c1=B.c1

from B 
WHERE A.id = B.id

posted @ 2016-05-24 09:12  洋葱土豆随心匠  阅读(157)  评论(0编辑  收藏  举报