update 更新查询出的表字段

update tableB   set tableB.a ='aaa' 
 from (
  SELECT *  FROM tableA 
) as tableB


/*普通的更新数据方法*/

update table set a='aaa'

 

posted @ 2017-11-17 14:52  chu_叶子  阅读(1431)  评论(0)    收藏  举报