mysql分组之后统计数量

select count(*)  from
(SELECT count(*) FROM 表名 WHERE 条件 GROUP BY id ) a ;
原文地址:https://www.cnblogs.com/shenming/p/4343895.html