SELECT id FROM (
SELECT
id, -- primary key
rownum rownum_
from test
where time BETWEEN TO_DATE('2021-01-01 00:00:00', 'yyyy-MM-dd hh24:mi:ss') AND TO_DATE('2021-10-25 23:59:59', 'yyyy-MM-dd hh24:mi:ss')
and ROWNUM <= 15000
ORDER BY id
) WHERE rownum_ > 14000
Query according to the time range, in paging,But there will be duplicate data. the data of 14000~15000 will reappear at 18000~19000. There are 9,000 duplicates of 100,000 data.