Mysql Concat two columns while searching with LIKE

前端 未结 3 2041
攒了一身酷
攒了一身酷 2021-01-07 02:57

I am trying to make a MySQL query where I filter the records based on the search text using LIKE keyword.

For example if the user searches for Illusion Softwar

3条回答
  •  离开以前
    2021-01-07 03:07

    you can try this also, this worked for me,

    $this->db->or_like('CONCAT(Contacts.FirstName,' ', Contacts.LastName)',$search);
    

提交回复
热议问题