37
Views
3
Comments
SQL avanced Pagination with Oracle
Question
Application Type
Reactive


Good afternoon, can anyone help me with how to implement pagination in advanced SQL, considering that my database is pointed to Oracle 

2019-04-09 00-57-55
carl ruhle

Hi Luiz,

use something like this.

select * 

from  ( 

 <columns>,  row_number()  over (order by something unique) rn 

from <table> )

where rn between :n and :m

order by rn;

:n starting row

:m ending row

Hope it helps you

Regards


2020-11-10 07-09-26
Dadi

Hi @carl ruhle 

I have same issue and then using the expression on table instead do the query. Thank you for the solution, it would make better improvement to up my experience.


Regards

2019-04-09 00-57-55
carl ruhle

Hi @Dadi 

if you have an issue, share the statement if possible that we will try our best to help.

Regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.