sql语句查询重复数据

select id, name, memo
from A
where id in (select id from A group by id having count(1) >= 2)

原文地址:https://www.cnblogs.com/yinchengliang/p/4362821.html