xuz0917 发表于 2013-7-20 07:06:27

学习了

yanchunxia 发表于 2016-12-14 12:02:11

where type='city' and (cityid='beijing' or cityid='xiamen')想要得到这种结果ci框架应该怎么写

Hex 发表于 2016-12-14 15:42:23

yanchunxia 发表于 2016-12-14 12:02
where type='city' and (cityid='beijing' or cityid='xiamen')想要得到这种结果ci框架应该怎么写 ...

QueryBuilder 不是万能的,建议复杂 SQL 直接用 query()
页: 1 [2]
查看完整版本: 新手求教:CI里面where的OR判断怎么写?