update b set b.name=a.name from a where a.id=b.id

解决方案 »

  1.   

    update B set name=A.name from A where A.id=B.id
      

  2.   

    .........好像要用B.NAME=A.NAME,上次没写系统不让我过
    还有from 好像要把A,B都写上update b set b.name = a.name from a, b where a.id =b.id
      

  3.   

    update B set name=A.name from A where A.id=B.id
    通过
      

  4.   

    update B set name=A.name from A where A.id=B.id
      

  5.   

    update B set name=A.name from B,A where B.name=A.name
      

  6.   

    update b.name=a.name where a.id in (select a.id from a inner join b on a.id=b.id)
      

  7.   


    update b set b.name=a.name from a where a.id=b.id请问: 如果b.id或者a.id有多个值怎么办?