update table1 set A = table2.B from table2 where table1.? = table2.?

解决方案 »

  1.   

    楼上说得没错。
    既然是所有记录都要更新,where就不需要了。
      

  2.   

    楼上的大哥,人家的那个where是连接条件,省了会出人命di……
      

  3.   

    update table1 set TABLE1.A="更新的值" from table1
    where table1.a in (select a from tableb where table1.a=table2.a)
      

  4.   

    同意: tj_dns(愉快的登山者) (
      

  5.   

    update table1 set A = table2.B from table2