txf0324

分页语句的步骤:

a.最内层sql,查询要分页的所有数据

b.第二层sql,通过rownum伪列确定显示数据的上限,并且给查询的数据添加rownum伪列的值

c.最外层sql,设置显示数据的下限

select*from

(select a.*,rownum r from

(select*from表名 where条件 orderby列) a

Where rownum<=页数*条数) b where r>(页数-1)*条数

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-02-22
  • 2021-12-12
  • 2021-08-19
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2021-05-30
  • 2021-11-03
  • 2021-12-18
  • 2021-11-20
  • 2022-01-30
相关资源
相似解决方案