数据库查出表中重复列的数据:
select a,count(*) from table group by a having count(*)>1
查重复次数最多的列:select a,num from ( select a,count(*) num from table group by a having count(*)>1 ) order by num desc
数据库查出表中重复列的数据:
select a,count(*) from table group by a having count(*)>1
查重复次数最多的列:select a,num from ( select a,count(*) num from table group by a having count(*)>1 ) order by num desc