Thinkphp5 OR多字段问题?

浏览:1824 发布日期:2019/03/19 分类:求助交流 关键字: thinkphp5 or
目前为止,我找到了:
$where['a.status'] =[['eq',1],['eq',2],'or'];
WHERE `a`.`user_id` = '4' AND ( `a`.`status` = 1 or `a`.`status` = 2 )

咋个弄
WHERE uid = '4' AND ( (a = 1,b=2) or a = 2 )
最佳答案
评论( 相关
后面还有条评论,点击查看>>