where 使用in不能成功的删除数据

浏览:1392 发布日期:2015/11/10 分类:求助交流
//通过ajax 传过来一个id 是一个数组
$id = I('post.id');
$map['id'] = array('in',$id);

$User->where($map)->delete();

这样就删除失败 打印出的sql语句是 delete from biao where id=array

最佳答案
评论( 相关
后面还有条评论,点击查看>>