Oracle
 sql >> Database >  >> RDS >> Oracle

Alternative a LIMIT e OFFSET per il paging in Oracle

A partire da Oracle 12c, potresti utilizzare le prime N query.

SELECT fieldA,fieldB 
FROM table 
ORDER BY fieldA 
OFFSET 5 ROWS FETCH NEXT 14 ROWS ONLY;

http://www.oracle-base.com/articles/12c/row-limiting-clause-for-top-n-queries-12cr1.php