查询某个字段重复出现的次数

查询某个字段出现的次数:select A,count(*) from tableA group by A;

查询出现次数大于1的:select A,count(*) from tableA group by A having count(*) > 1;

猜你喜欢

转载自xty88645.iteye.com/blog/1940078