一个表有50万行
怎么选取相同的行?
select * from table1 a where (select count(1) from table1 where col1=a.col1)>1
太慢了,好久了还木有出来~
求招式阿~
一个表有50万行
怎么选取相同的行?
select * from table1 a where (select count(1) from table1 where col1=a.col1)>1
太慢了,好久了还木有出来~
求招式阿~
4 回答1.3k 阅读✓ 已解决
8 回答1.2k 阅读
3 回答1k 阅读✓ 已解决
2 回答3.6k 阅读
2 回答1.7k 阅读
2 回答1.3k 阅读
1 回答866 阅读✓ 已解决
试试这个呢
SELECT * FROM table GROUP BY col HAVING count(col)>1