不管几个sql ,只要能实现就好了,请大家帮忙

解决方案 »

  1.   

    試一下這樣:
    update record c set qyid = (select b.id from qyxx2 a,qyxx b where a.qymc = b.qymc) where c.id=a.id
      

  2.   

    提示a.id为无效的标识符,大家帮忙啊
      

  3.   

    试一下:
    update record C
    set qyid = (select b.id from qyxx2 a,qyxx b where a.qymc = b.qymc  AND C.qyid = b.id) 
      

  4.   

    update record c
    set qyid = (select b.id from qyxx2 a,qyxx b where a.qymc = b.qymc  and c.qyid = a.id)