会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
白板的学习笔记
将人类的智慧讲给电脑听
首页
新随笔
联系
订阅
管理
2015年12月11日
thinkphp3.2 数据库 AND OR连缀使用
摘要: 坑死爹了。我想实现一下这种sql: select * from xxx where (a = 1 and b = 2) or ( a = 2 and b = 1);翻遍了thinkphp的文档也没有说明怎么去实现。自己琢磨出来的。。 $where['_complex'] = array( ...
阅读全文
posted @ 2015-12-11 10:13 Mr.白板
阅读(985)
评论(0)
推荐(0)
编辑