update c set c.id2=b.id2
from a,b,c
where a.name=b.name and b.id2=c.id2

解决方案 »

  1.   

    update c set c.id2=a.id1
    from a a,b b,c c
    where a.name=b.name and b.id2=c.id2
      

  2.   

    to:   回复人: Leftie(左手,为人民币服务) 谢谢了!!
    不过,你那句有一点点小问题,应该是
    update c set c.id2=a.id1
    from a,b,c
    where a.name=b.name and b.id2=c.id2因为是我的问题是:现在的问题是如何把 c.id2批量的改成a.id1