admin管理员组文章数量:1667288
2019独角兽企业重金招聘Python工程师标准>>>
tp3.2.3多次数组条件会合并,字符串条件只支持一次,就是说字符串只能出现一次
//获取is_del为0的数据 $sel = M('bpapply')->where ("bp_id in($str) and is_del=0")->select();
//取出符合在字符串$str中,并且is_del为0的数据,$str必须是字符串 $sel = M('bpapply')->where (array("bp_id in($str)", 'is_del'=>1,'is_status'=>1))->select();
//取出is_status为0的数据 $sel = M('bpapply')->where('is_status=0')->select();
//如果是多个条件,使用 $sel = M('bpapply')->where (array("bp_id in($str)", 'is_status'=>0))->where(array('is_del'=>1))->select();
转载于:https://my.oschina/botkenni/blog/822358
本文标签: 多条
版权声明:本文标题:ThinkPHP3.2.3多条件查询 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1730077697a1221993.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论