like 模糊查询 ci框架

$this->db->like('title', 'match', 'before'); 
// 生成: WHERE title LIKE '%match' 

$this->db->like('title', 'match', 'after'); 
// 生成: WHERE title LIKE 'match%' 

$this->db->like('title', 'match', 'both'); 
// 生成: WHERE title LIKE '%match%' 

 

posted on 2016-01-28 21:25  ziyi_ang  阅读(1732)  评论(0编辑  收藏  举报

导航