select * from STORE.RYYLB where rownum<=1900010
minus
select * from STORE.RYYLB where rownum<=1900000or use rowid

解决方案 »

  1.   

    select * from (select rownum num,a.* from ryylb a) 
    where num between 1900000 and 1900010
      

  2.   

    select * from (select * from store.ryylb order by fields) a where rownum between 1900000 and 19000010
    如果要是按照某一个字段排序的话就必须用此种结构,直接用where rownum<19000010这样的语句是不会按照作者的意图来排序的。
      

  3.   

    select  *  from  STORE.RYYLB  where  rownum  <=1900010  
    minus  
    select  *  from  STORE.RYYLB  where  rownum  <=1900000  
     
    执行效率太低,本人以前就是使用导致经常死机。