1.链式->count() 查询记录总数 select count(id) from ims_store
->group('name')->count() 分组后的记录总数 select count(*) from (select id from ims_store group by name) a
误区:差点认为是 得出每行含有count的列表