select  count(*) 通过数据链查询出与原数据表是一样的记录,但是在本地一创建表create table ***  as select  * from table@数据链 ,新表中的记录就多了,很多重复的

解决方案 »

  1.   

    select t.*,rowid from 表名@数据库连接 t;
    看看rowid是否有重复
      

  2.   

    create table tb1 as select  * from table@数据链
    create table tb2 as select  * from table@数据链然后看看tb1 和tb2 的条数是否一致?
    另外,你的table@数据链会不会是时时在变的表呢?
      

  3.   

    很诡异
    大神,有没有思路啊
    对,你可以将rowid查出来看看是不是重复了?
      

  4.   

    通过rowid查询出源表有重复记录,不使用rowid是查不出重复记录的
      

  5.   

    select rowid from table group by rowid having count(*) >=2
    查询重复