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

解决方案 »

  1.   

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

  2.   

    upadte table1 set table1.status =table2.status
    from table1,table2
    where table1.idl=table2.idl
      

  3.   

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

  4.   

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

  5.   

    update table1 set status=table2.status 
    from table2 
    where table1.id1=table2.id1
      

  6.   

    你可以试一下:
    update table1 set table1.status=table2.status where table1.id=table2.id