如何分配查詢大表數據

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;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章