update 表1 set total_jx=b.total_jx,total_dz=c.total_dz from 表1 a left join 表2 b on a.cs=b.cs left join 表3 c on a.cs=c.cs

解决方案 »

  1.   

    update A
    set A.total_jx=B.total_jx,
        A.total_dz=C.total_dz
    from 表1 A left join 表2 B on B.cs=A.cs 
         left join 表3 C on C.cs=A.cs
      

  2.   

    update 表1 set a.total_jx=b.total_jx from 表1 a,表2 b where a.cs=b.cs
    update 表1 set a.total_dz=c.total_dz from 表1 a,表3 c where a.cs=c.cs
      

  3.   

    update table1 
    set total_jx = b.total_jx,
        total_dz = c.total_dz
    from table1  left join table2 b on
    table1.cs = b.cs left join table3 c on
    table1.cs = c.cs
      

  4.   

    insert into 表1 select * from 表2 union all select * from 表3
      

  5.   

    update 表1 set 表1.total_jx=表2.total_jx from 表1 ,表2  where 表1.cs=表2.cs
    update 表1 set a表1.total_dz=表3.total_dz from 表1 ,表3 where 表1.cs=表3.cs