Oracle: paging results.

select * from ( select rownum as rn, a.* from ( select * from my_table order by ....a_unique_criteria... ) a ) where rownum <= :size and rn > (:page-1)*:size
Paging results in Oracle SQL.

2 Responses

GrACIAS ME AYUDO
La idea es esa: ayudarnos.

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.