select in查询

浏览:28522 发布日期:2014/07/22 分类:求助交流 关键字: in
请问我通过$where['depid']=$user->where($condition)->Field('depid')->select();找出3条记录,然后将这3条记录作为查询条件,
$cond['depid']=array('in',$where);
M('user')->where($cond)->select();
这样写有什么问题呢?这不是in条件查询码?为什么不行?why?
最佳答案
评论( 相关
后面还有条评论,点击查看>>