Grouping WHERE clauses in Codeigniter

后端 未结 6 1006
陌清茗
陌清茗 2020-11-27 21:02

I want to produce the following SQL code using Active Records in Codeigniter:

WHERE name != \'Joe\' AND (age < 69 OR id > 50)

Doing t

6条回答
  •  不知归路
    2020-11-27 21:24

    Solved. Dynamically generate the SQL query and plug it into $this->db->where(). Thanks guys!

提交回复
热议问题