T-SQL备忘-表连接更新

1、update a inner join b on a.id=b.id set a.name=b.name where ...
 
2、update table1 set a.name = b.name from table1 a inner join table2 b on a.id =b.id where...
posted @ 2015-11-26 09:35  自由的鱼  阅读(180)  评论(0编辑  收藏  举报