Quantcast
Viewing latest article 1
Browse Latest Browse All 17

Answer by Manouchehr Rasouli for How do I limit the number of rows returned by an Oracle query after ordering?

you can also use following query

SELECT "ID", "COL1", "ETC.." FROM         tblTestWHERE "COL1" = "test"ORDER BY "ID" DESC  OFFSET x ROWS  FETCH NEXT y ROWS ONLY;

in this case you can skip first x rows and limit resault into next y rows.then you can play around with x and y inorder to paginate over your data.


Viewing latest article 1
Browse Latest Browse All 17

Trending Articles