$where['$or'] = [
['id' => ['lt'=>0]],
['id2' => ['lt'=>1]]
];
这个是查询 id>0 或者id2>1的数据。
$where['$or'] = [
['id' => ['lt'=>0]],
['id2' => ['lt'=>1]]
];
这个是查询 id>0 或者id2>1的数据。
转载于:https://www.cnblogs.com/phpwechat/p/9561148.html