select 重复字段, count(重复字段) from 表 group by 重复字段 order by 重复字段 desc
SELECT 字段,COUNT(*) FROM 表名 GROUP BY 1 ORDER BY 2 DESC
试试吧。
select 列名, count(*) from 表名 group by 列名 order by count(*) desc;
这样就可以了
SELECT 字段,COUNT(*) a FROM 表名 GROUP BY 1 t order by COUNT(*)desc
select 重复字段, count(重复字段) from 表 group by 重复字段 order by count(*) desc