经常要用到的分页

select * from 
(
    select *,row_number() over  
    (
        order by  
        time desc
    ) n 
    from history  
) hhh 
where hhh.n > 50000 
and hhh.n <= 50010
原文地址:https://www.cnblogs.com/william-lin/p/4578870.html