这是我的查询:
select *
from (SELECT "MYTABLE".* FROM "MYTABLE" ORDER BY "COMPANY" ASC, "SURNAME" ASC)
where ROWNUM between 0 and 20
效果如预期,但是当我尝试获取接下来的 20 条记录时:
select *
from (SELECT "MYTABLE".* FROM "MYTABLE" ORDER BY "COMPANY" ASC, "SURNAME" ASC)
where ROWNUM between 20 and 40
结果集是空的?为什么会这样,我该怎么做才能获得接下来的 20 条记录?