-2
$this->db->select('*');
$this->db->from('messages');
$this->db->where('user_id_get', $data['users_id']);
$this->db->group_by('user_id_get');
//$this->db->order_by('id','DESC'); This doesn't work
$data["Query"] = $this->db->get();
如何在我的查詢(codeigniter)中使用order_by和group_by在這裏?order by by group by
請參閱下面的鏈接[http://stackoverflow.com/questions/19943388/codeigniter-group-by-with-order-by-not-working-as-expected](http://stackoverflow.com/questions/ 19943388/codeigniter-group-by-by-by-working-as-expected) – msk
好的,但是我的查詢是什麼? –
身份證不在您的羣組中,它如何通過它進行排序? – Hogan