是oracle数据库 不是sqlserver·!!!!!!!!!!!!!!!1表A和表B在同一个数据库中表A中的Id对应表B中的Id现在需要把表B中的name列数据复制到表A中的name列如何做???????????????????????????????????
立马结贴!!!帮忙 谢谢了!!!!!!!!!帮忙1!!

解决方案 »

  1.   

    update b set name=(select name from a where a.id=b.id)
      

  2.   

    update a set name=(select name from b where a.id=b.id and rownum =1)
    where exists(select 1 from b where  where a.id=b.id )
      

  3.   


    update b set name=(select name from a where a.id=b.id and rownum=1)
    where exists (select null from a where a.id=b.id)
      

  4.   

    update a set a.name=(select name from b where b.id=a.id) 上面写反了。