sql查询重复项

select from [表A] where id in (select id from [表A] group by id having count(id) >1 )

原文地址:https://www.cnblogs.com/wuyujie/p/7885017.html