mysql查询重复

select * from tablename where id in (   
select id from tablename   
group by id   
having count(id) > 1   
)

posted @ 2015-02-04 11:48  jiayongchao  阅读(307)  评论(0编辑  收藏  举报