Update table1 A Set je1=(select je2 from table table2 where bm2=A.bm1 and rownum=1) 
或者 
Update table1 A Set je1=Nvl((select je2 from table table2 where bm2=A.bm1 and rownum=1),je1)数据量在十万级以下比较快.

解决方案 »

  1.   

    update table1 setje1=(select je2 from table2 where table1.bm1=table2.bm2);
    commit ;
      

  2.   

    update table1
      set je1 = (select je2 from table2 where bm1 = bm2)
      

  3.   

    "那我要是不只有一个字段呢,就的不只用一个子语句。":update a set (FLD1,FLD2,FLD3)=(select FLD1,FLD2,FLD3 from b where a.id=b.id) 
    where exists ( select 1 from b where a.a_id=b.a_id);
      

  4.   

    update set table1 a set (a.col1,a.col2,...)=(select b.col1,b.col2,... from table2 b where a.bm1=b.bm2);
    commit ;
      

  5.   

    我试了一下用   shuipipi(水皮皮) 可以
    用  w_tsinghua()  的不成功