thinkphp5.1 如何进行OR查询null的问题

浏览:3377 发布日期:2019/01/09 分类:ThinkPHP5专区 关键字: or null thinkphp5.1
 User::withJoin('info','LEFT')
                ->where('info.status','in',$status)
                ->where('info.status',null)
                ->where($where)
                ->order($order)
                ->paginate($limit);
想实现where (info.status in $status OR info.status is null) ADN $where的效果,本来以为通过数组条件的方法实现,但发现查询 null框架好像不行,试过['info.status','exp','is null']不行,请各位大拿指点!!
最佳答案
评论( 相关
后面还有条评论,点击查看>>