如果随便返回一个数据都行的话,用个max或者min返回单个数就行了update     b set b.age2=(select    max(age)  from a  where a.id=b.id)

解决方案 »

  1.   

    update  b set b.age2=(select   age from a  where a.id=b.id and rownum=1)
      

  2.   

    但是我要把 表b中的 age2更新成 25或26都无所谓这种需求,还是头一回见到。
      

  3.   

    如果随便返回一个数据都行的话,用个max或者min返回单个数就行了update     b set b.age2=(select    max(age)  from a  where a.id=b.id)版主的这办法是最好的,就按这样就行