笔记
select /*+ ordered use_nl(t1 t2) */ id, user_id, age, gmt_create
from (select rid
from (select rid, rownum as rn
from (select rowid as rid
from test where user_id = :1
order by gmt_create desc)
where rownum <= :2)
where rn >= :3) t1, test t2
where t1.rid = t2.rowid
oracle分页的SQL
笔记 select /*+ ordered use_nl(t1 t2) */ id, user_id, age, gmt_create from (select rid from …
免责声明:文章内容不代表本站立场,本站不对其内容的真实性、完整性、准确性给予任何担保、暗示和承诺,仅供读者参考,文章版权归原作者所有。如本文内容影响到您的合法权益(内容、图片等),请及时联系本站,我们会及时删除处理。