一、

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

 

二、

update   table1   set   a.status   =   b.status   
  from   table1   a   inner   join   table2   b     
  on   a.idl   =   b.idl

相关文章: