where语句没起作用

浏览:291 发布日期:2017/06/21 分类:求助交流 关键字: 使用in批量更新
$ids=I('post.ids/a');
$this->warehouseGroup_model->where(array('id'=>array('in',$ids)))->save(array('state'=>2));

代码中是这么写的,但是为什么where条件没起作用;打印出来的sql语句时这样的:UPDATE `gr_warehouse_group` SET `state`='1',为什么会没有where呢
最佳答案
评论( 相关
后面还有条评论,点击查看>>