delete from tablename where id in ".$uid."这样的语句有错吗,为什么执行会报错.mysql 4.1,php 4.4

解决方案 »

  1.   

    你的uid是什么数据?echo sql语句看看。
    参照:where id in (1,3,5)))
      

  2.   

    上面多写了好多))
    hehe 
    where id in (1,3,5)
      

  3.   

    "delete from tablename where id in (".$uid.")";
    只那样不是SQL能认识的语句!
      

  4.   

    to ldq210() :
    你的意思是什么?应该怎么写呢
    哦,$uid是从表单接过来的要删除的id值.
      

  5.   

    要看你的uid的格式,
    如果uid只是一个数,不要用in, 用=
    如果是逗号分开的数字串,1,3,5 这样,如上加括号其他格式需要转换成上面的