select * from xx where (a = 22 or b = 333) or (c=11 and d=22)

$where_1['a'] = array('eq', '222');
$where_2['b'] = array('eq','333'); $where_3['c'] = 11;
$where_4['d'] = 22; $map['_complex'][] = [
$where_1,$where_2,
'_logic'=>'or',
];
$map['_complex'][] = [
$where_3,$where_4,
'_logic'=>'or',
]; $this->where($map)->select();

  

最新文章

  1. jmeter之线程组的使用
  2. Cocos2d-x 3.0 Json用法 Cocos2d-x xml解析
  3. 初识selendroid
  4. 编译错误:error: multi-line comment
  5. Gradle学习系列之十——自定义Plugin(本系列完)
  6. 设置TextView下划线并响应点击事件(SpannableString)
  7. K2十年:专注BPM
  8. thinkPHP生成静态分页列表
  9. Flex博客
  10. UNIX基础知识之时间值
  11. CAS原理
  12. 【转】【opencv】仿射变换
  13. druid-1.0.13 数据库配置文件密码加密
  14. java.lang.IllegalAccessError: tried to access method org.apache.poi.util.POILogger.log from class org.apache.poi.openxml4j.opc.ZipPackage
  15. clique
  16. Hadoop家族
  17. 如何用ABP框架快速完成项目(5) - 用ABP一个人快速完成项目(1) - 使用代码生成器
  18. hdu 2098 分拆素数和(素数)
  19. 理解Sql Server 事务隔离层级(Transaction Isolation Level)
  20. django实现分页

热门文章

  1. 移动端 上传头像 并裁剪功能(h5)
  2. Windows下搭建kafka运行环境
  3. 初步学习python
  4. Python---Models 模型
  5. js类型转换比较表格
  6. httpclient方式调用接口
  7. php普通传值和引用传值 (相当通俗易懂的一篇讲解)
  8. IDEA搭建scala开发环境开发spark应用程序
  9. mysql 和 hive 和分布式zookeeper和HBASE分布式安装教程
  10. Debian install Python3.7