新版官网
文档
应用
扩展
市场
社区
云服务
搜索
系统检测到您的用户名不符合规范:
用户名
软删除下whereOr查询
浏览:1075
发布日期:2017/01/06
5.0.0 - 普通 - 已关闭
$this->whereOr("new","1")->whereOr("hot","1")->select();
会生成已下语句
select * from table where
delete_time is null or new= '1' or hot= '1'
这样会把delete_time is null 的数据全部查询出来
delete_time is null 后面应该默认跟 and 不是 or 吧
评论(
)
后面还有
条评论,
点击查看>>
评论支持使用[code][/code]标签添加代码
您需要登录后才可以评论
登录
|
立即注册
提交Bug
ytomorrow
积分:1122
等级:LV3