查询有某个字段重复的数据

select image_id from images group by image_id having count(*)>1;
原文地址:https://www.cnblogs.com/daysme/p/11566885.html