就是实现mysql 中的limit n,m 功能

解决方案 »

  1.   

    select rownum,a from table where rownum < m
     minus
     select rownum,a from table
     where rownum < n
    (m>n)
      

  2.   

    select * from (select rownum as rid ,a.* from table a where rownum <= m) where rid >= n ;
      

  3.   

    按照樓主的邏輯應該這樣寫吧
    select * 
    from 
    (select rownum as rid ,a.* from table a where rownum <=n+m-1)
    where rid >= n 好像沒有更好的寫法了