首页 > 代码库 > oracle 分页

oracle 分页

v_from := (p_pageIndex - 1) * p_pageSize + 1;
v_to := v_from + p_pageSize - 1;
p_totalRows := 0;

 

(select t2.*
from (select rownum rn, t1.*
from () t1) t2
where rn between v_from and v_to)

oracle 分页