delete from table where d_id in (1,2,3,10....);

解决方案 »

  1.   

    没有规律
    to: trampwind(随风)
    不对啊 出错
      

  2.   

    哦,出错,你用的是mysql还是postgresql,我在postgresql里试过能执行的,你的语句贴出来看看
      

  3.   

    错误SQL 语句 :  DELETE sp_t61 WHERE d_id IN ( 1, 2, 3 ) MySQL 返回:
    You have an error in your SQL syntax near 'sp_t61 WHERE d_id IN ( 1, 2, 3  ) ' at line 1
      

  4.   

    不好意思 少了一个from  :)
    谢谢 trampwind(随风)