MySQL查询重复的数据

查询字段 fund_id 重复的数据

SELECT * FROM fund a WHERE (a.fund_id) IN (
SELECT fund_id FROM fund GROUP BY fund_id HAVING count(*)> 1);

 

posted @ 2021-12-11 11:14  西门长海  阅读(62)  评论(0编辑  收藏  举报