查询重复的记录
select * from 
(select count(*) as xh,id from table
group by id) where xh>1查询不重复的记录
select * from 
(select count(*) as xh,id from table
group by id) where xh=1