先开个坑
WHERE篇
1, 模糊查询 where['keyword'] = [ 'like' , '%test%']
2, 不等于,大于 ,小于
EQ 等于(=)
NEQ 不等于(<>)
GT 大于(>)
EGT 大于等于(>=)
LT 小于(<)
ELT 小于等于(<=)
where['id'] = [' NEQ' , '5' ]
4,等于多个个
id是1或2或3 $where['id'] = [ 'in', [1,2,3]]
id不是1或2或3 $where['id'] = [ 'not in', [1,2,3]]
3<id <9 $where['id'] = [
['GT',3],
['LT',9]
]
资料仅供参考,有点老 https://www.cnblogs.com/jackylee92/p/6143179.html