THINKPHP and or 模板语句书写
2024-08-29 09:04:31
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();
最新文章
- jmeter之线程组的使用
- Cocos2d-x 3.0 Json用法 Cocos2d-x xml解析
- 初识selendroid
- 编译错误:error: multi-line comment
- Gradle学习系列之十——自定义Plugin(本系列完)
- 设置TextView下划线并响应点击事件(SpannableString)
- K2十年:专注BPM
- thinkPHP生成静态分页列表
- Flex博客
- UNIX基础知识之时间值
- CAS原理
- 【转】【opencv】仿射变换
- druid-1.0.13 数据库配置文件密码加密
- java.lang.IllegalAccessError: tried to access method org.apache.poi.util.POILogger.log from class org.apache.poi.openxml4j.opc.ZipPackage
- clique
- Hadoop家族
- 如何用ABP框架快速完成项目(5) - 用ABP一个人快速完成项目(1) - 使用代码生成器
- hdu 2098 分拆素数和(素数)
- 理解Sql Server 事务隔离层级(Transaction Isolation Level)
- django实现分页