sql语句中的in

浏览:1636 发布日期:2017/09/19 分类:求助交流 关键字: sql in
$arr = $ids['ids'];
$where['id'] = array('in',$arr);
print_r($where);//Array ( [id] => Array ( [0] => in [1] => 5,6,7,8 ) )
$res = $this->venue_subject_model->where($where)->select();
echo $this->venue_subject_model->getLastSql().'<br/>';//SELECT * FROM `lw_venue_subject`

大神帮忙看看我这个in怎么就没起作用呢
最佳答案
评论( 相关
后面还有条评论,点击查看>>