你用的版本的MySql不支持 in ,呵呵

解决方案 »

  1.   

    晕,怎么这么写。有必要么?update oldsendfee set customerid='2692' 
    where customerId='2123'
    不行么~
      

  2.   

    是MYSQL5.0以下版本不支持嵌套查询
      

  3.   

    update oldsendfee set customerid='2692' where customerId='2123'
      

  4.   

    如果子查询中不只是一条记录,那么要实现批量修改,这种方法是很简单的,但是我的MySQL好像也不支持,请问一下当遇到像这样的批量修改应该怎么办?
      

  5.   

    没见过用sql用到这么白痴的。
    估计让你算1 + 10,你会说手指头不够用~!
      

  6.   

    NB的人物帮忙看看我的帐子:
    http://community.csdn.net/Expert/topic/4831/4831633.xml?temp=.5786707
      

  7.   

    yh801216(艾奥利斯)
    你个傻B,
    好好领会下老子的意思:
    update oldsendfee set customerid='2692' 
    where id in(select id from oldsendfee where customerId='2123')
    如果改成:
    update oldsendfee set customerid='2692' 
    where id in(select id from customer where customerId='2123')呢?
    老子告诉你,老子用mssql,oracle时候你还没学会手淫,个SB就会骂人,白痴一个。
      

  8.   

    update oldsendfee as a, customer as b set a.customerid='2692' where a.id=b.id and b.customerId='2123';有问题么?呵呵,我说话是过分了点,道歉道歉。楼主慢慢玩,我先闪了。