Sql server 从一个表中获取数据更新到另一个表中

for SQL Server 数据库:

"update a set a.name=b.name1 from a,b where a.id=b.id"

 

以下在SQL Server中验证可行: 

update   a   set   a.status=b.status   
  from   table1   a,table2   b   
  where   a.id1=b.id1  

posted @ 2018-03-11 12:46  xuelixue  阅读(544)  评论(0编辑  收藏  举报