数据库中查出一列中的重复值的行
备忘....
SQL语句:
table:表名
test:要查的列(有重复的值)
select * from table a where (select count(1) from table b where a.test=b.test)>1
原创文字只代表本人某一时间内的观点或结论,本人不对涉及到的任何代码担保。转载请标明出处!
备忘....
SQL语句:
table:表名
test:要查的列(有重复的值)
select * from table a where (select count(1) from table b where a.test=b.test)>1
原创文字只代表本人某一时间内的观点或结论,本人不对涉及到的任何代码担保。转载请标明出处!