查询某个字段存在重复数据的方法:

select * from tablename where id in (
select id from tablename 
group by id 
having count(id) > 1
)

其中id为要查询的重复字段名!

 

相关文章: