select * from --对于带有行号的查询集合表给定下限
(select rownum rn,t.* --对查询集合表每行增加行号
from (
select * from b_t_casestatelog where pjid = 'bbtest2' and actorphase = 2 and rownum < 300 order by testcaseid, logid) --排序查询你想要的数据,给定上限
t)
where rn > 200;
转载于:https://blog.51cto.com/happycool/1376687