什么意思? 这样 a b c ---- ---- ---- 八戒 悟空 观音 八戒 悟空 观音 唐僧 悟空 沙僧select a,b from aa group by a,b having count(1)>1
就是ATGC的意思,但1000万的语句,还是得想点其他得办法
查找重复记录的方法,俺知道的也就以下这两种SQL语句 至于1000W条记录,说少不少,说多也不多,俺在3000W条记录的表上都是很快的,只有几秒 机器配置: SUN4500 4个CPU,6G内存,很一般的select * from table t1 where where t1.rowid != (select max(rowid) from table t2 where t1.id=t2.id and t1.name=t2.name) select count(rowid),a,b from table group by a,b having count(rowid)>1
如果两条记录的a+b相同就找出来
这样
a b c
---- ---- ----
八戒 悟空 观音
八戒 悟空 观音
唐僧 悟空 沙僧select a,b from aa group by a,b having count(1)>1
至于1000W条记录,说少不少,说多也不多,俺在3000W条记录的表上都是很快的,只有几秒
机器配置: SUN4500 4个CPU,6G内存,很一般的select * from table t1 where where t1.rowid != (select max(rowid) from table t2 where t1.id=t2.id and t1.name=t2.name)
select count(rowid),a,b from table group by a,b having count(rowid)>1