Eg:('a'=1 and 'b'=2) or ('c'=3 and 'd'=4) and 'e'=5

解决方法

$condition1['a'] = 1;
$condition1['b'] = 2;
$condition2['c'] = 3;
$condition2['d'] = 4;
$condition['_complex'] = array(
$condition1,
$condition2,
'_logic' => 'or'
);
$condition['e'] = 5;
D('模型')->where($condition)->select();

最新文章

  1. java数据类型
  2. [Linux] - Docker pure-ftp使用
  3. nodejs 框架安装生成app
  4. textarea 限制字数
  5. css_day6
  6. 【原创】用Python爬取LeetCode的AC代码到Github
  7. 我与 windows kernel 的一段时光
  8. Spark 读写hive 表
  9. Mybatis Generator实现分页功能
  10. python制作词云
  11. 原型理解:prototype
  12. DEA和模糊综合评价
  13. ionic3 git 提交报错
  14. thinkphp验证器
  15. [uva P1601] The Morning after Halloween
  16. Directory /home/hdfs/name is in an inconsistent state: storage directory does not exist or is not a
  17. WordPaster-dedecms5.7整合教程
  18. 系统事件管理(Events) ---- HTML5+
  19. CF1076E:Vasya and a Tree(DFS&差分)
  20. The maximum number of processes for the user account running is currently , which can cause performance issues. We recommend increasing this to at least 4096.

热门文章

  1. Three.js学习1_快速入门
  2. 记录laravelchina中的微信小程序教程的npm install安装报错
  3. ARouter使用
  4. 使用Docker构建PHP7.4 + Swoole + Redis镜像
  5. 什么是Nginx -九五小庞
  6. SpringSecurity中的Authentication信息与登录流程
  7. Java中nextInt和nextLine同时使用出现的问题
  8. myeclipse前端界面乱码
  9. Java清空一个指定文件
  10. datattable循环读取数据用于循环遍历checkboxlist里的项目