CI框架 模糊查询,链表查询

$data = $this->db->from('flash_news')
->select('xx,xx,xx,xx')
->limit(2)
->like('tags' ,'小兵研究', 'both')
->like('tags' ,'孙哥哥', 'both')
->like('content' ,'众生药业', 'both')
->order_by('news_id','desc')
->get()
->result_array();
echo $this->db->last_query()

$data = $this->db->from('xx')
->join('xx','xx.SECURITYCODE = xx.SECURITYCODE')
->select('xx')
->where(array(1)
//->limit(500)
->get()
->result_array();
posted @ 2018-09-12 18:13  千载白云  阅读(1399)  评论(0编辑  收藏  举报