MySQL查询重复的数据
查询字段 fund_id 重复的数据
SELECT * FROM fund a WHERE (a.fund_id) IN ( SELECT fund_id FROM fund GROUP BY fund_id HAVING count(*)> 1);
此博客主要用于记录相关知识点,大部分内容来自网络文章,特此感谢各位作者
查询字段 fund_id 重复的数据
SELECT * FROM fund a WHERE (a.fund_id) IN ( SELECT fund_id FROM fund GROUP BY fund_id HAVING count(*)> 1);