SQl去获取相同记录

以name字段为例

select * from table where name in(select name from table group by name having count(name)>1)

posted @ 2014-03-27 15:30  songpingyi  阅读(184)  评论(0编辑  收藏  举报