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();

猜你喜欢

转载自www.cnblogs.com/songyanan/p/9636436.html