Mysql查询某字段值重复的数据
- 查询event表中,code_num字段值重复的数据及重复次数
-
select code_num, count(*) as count from event WHERE code_year='2018' group by code_num having count>1;
Mysql查询某字段值重复的数据
select code_num, count(*) as count from event WHERE code_year='2018' group by code_num having count>1;