I search for Oracle paging query on the net, and most of them told me to wrap the query twice:
SELECT *
FROM (SELECT t.*, ROWNUM rn
FROM tableName t
WHERE ROWNUM < 200)
WHERE rn > 100
Just wondering if I can type it as:
SELECT *, ROWNUM rn
FROM tableName t
WHERE ROWNUN BETWEEN 100 AND 200
It seems the second one works as well. Is there any (performance) differences between these two query?