select count(字段名) from table group by 字段;
分组后的内容统计。 count统计的字段是 不包括空的数据。
sql ---- count 误区
原文:http://www.cnblogs.com/GotoJava/p/6269781.html