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();

猜你喜欢

转载自www.cnblogs.com/xiaobiaomei/p/9177834.html
tp5