select * from (
select a.*,rownum rn from (
select c1,c2,count(*) over() total from table where ....
) a where rownum <= 结束条数
) where rn >= 开始条数
select * from (
select a.*,rownum rn from (
select c1,c2,count(*) over() total from table where ....
) a where rownum <= 结束条数
) where rn >= 开始条数