Codeigniter Delete … Where … and

后端 未结 3 593
我寻月下人不归
我寻月下人不归 2021-01-27 00:27

I need a little help. How can i send this query with codeigniter?

Delete FROM friendconnect WHERE who = 5 and whos = 1 OR whos = 5 and who = 1;

3条回答
  •  情书的邮戳
    2021-01-27 01:04

    $this->db->where('(who = 5 and whos = 1) OR (whos = 5 and who = 1)');
    $this->db->delete('friendconnect');
    

提交回复
热议问题