数据库中查出一列中的重复值的行

备忘....

SQL语句:

table:表名

test:要查的列(有重复的值)

select * from table a where (select count(1) from table b where a.test=b.test)>1

posted @ 2009-04-15 14:46  Ants  阅读(785)  评论(0编辑  收藏  举报