how do i ignore the backticks in codeigniter when using active records? i need to order by cases

后端 未结 3 1037
星月不相逢
星月不相逢 2020-12-12 02:59

how do i ignore the backticks in codeigniter when using active records? i need to order by cases

case when roll_number is null then 1 else 0 end,

3条回答
  •  借酒劲吻你
    2020-12-12 03:32

    From the docs:

    $this->db->select() accepts an optional second parameter. If you set it to FALSE, CodeIgniter will not try to protect your field or table names with backticks. This is useful if you need a compound select statement.

提交回复
热议问题