update 表a set no=b.jb_id from 表a a,表b b where a.id=b.id

解决方案 »

  1.   

    update 表A
    set no=(select JB_ID from 表B where ID=表A.ID)
      

  2.   

    update  a set no=b.jb_id
    from 表A a,表B b
    where a.id=b.id
      

  3.   

    update 表A
    set no=(select JB_ID from 表B where ID=表A.ID)
      

  4.   

    谢谢大家了!yesterday2000(一笑而过) 的你的好像有点错误哦!呵呵!下次要小心点了!不过还是谢谢啦!
    鞠躬!
    谢谢!
      

  5.   

    TO : kfarvid(飘雪) ( ) 信誉:100 
    能不能把我的错误指出来??????
      

  6.   

    不好意思!好像是我搞错了!你的代码是使用了真名而不是使用别名!我是一时没思考认真导致误认为你的代码有错!不好意思!
    update 表a set no=b.jb_id update  
    别人的都是使用了别名!
    a set no=b.jb_id谢谢啦!你真关心别人啊!回答了问题还回头看看!呵呵!佩服!
    祝你尽快拿到星星!