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

备忘....

SQL语句:

table:表名

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

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

原文地址:https://www.cnblogs.com/leleroyn/p/1436456.html