GROUP BY + COUNT怎么写
select count(id) as nums,name from table where id = 12 group by name;用这样的语法$this->db->where();CI中上面的sql语句怎么写。
$this->db->select('count(id) as nums, name')->from('table')->where('id', 2)->group_by('name')->get()->row_array();
好好看手册 {:1_1:}
页:
[1]