版权声明:本文为博主原创文章,欢迎转载,转载时请以超链接形式标明文章原始出处。 https://blog.csdn.net/lilongsy/article/details/84766650
查询category
表中,catname
字段值重复的数据及重复次数
select catname, count(*) as count
from category
group by catname
having count>1
查询category
表中,catname
字段值重复的数据及重复次数
select catname, count(*) as count
from category
group by catname
having count>1