tp5 whereOr

题目:查询grade=1 or class=2 or sex=3的学生

$condition['grade'] = 1;
$condition['class'] = 3;
$condition['sex'] = 2;
$list =Db::name($this->name)->whereOr($condition)->select();

 

posted on 2018-06-13 14:59  薇薇123456  阅读(143)  评论(0编辑  收藏  举报

导航