CodeIgniter 中国开发者社区's Archiver
论坛
›
CodeIgniter 问答求助
› ci实现这样的查询语句是否可以?
ciquestion
发表于 2014-8-22 11:19:41
ci实现这样的查询语句是否可以?
xxx and ((aaa=111 and bbb=222) or (aaa=333 and bbb=444))
xxx是其他的查询条件
wlyx
发表于 2014-8-22 12:17:07
直接query SQL语句
风云123
发表于 2014-8-22 15:18:28
你这样写是有问题的 你可以这样$this->db->where("xx",xxx)->where("(aa=111 and bb=22) or (aa=333 and bb=444)")->get('表')
页:
[1]
查看完整版本:
ci实现这样的查询语句是否可以?