SELECT *
FROM
(
SELECT
T.*,
ROWNUM RN
FROM
( SELECT * FROM 表名 WHERE 条件 ) T
WHERE
ROWNUM <= ( ( currentPage - 1 ) * pageSize + pageSize )
)
WHERE
RN > ( ( currentPage - 1 ) * pageSize )
- currentPage:当前页
- pageSize:每页显示条数
标签:分页,pageSize,数据库,第几条,oracle,currentPage,ROWNUM,SELECT From: https://www.cnblogs.com/qzzzz/p/16970021.htmlRN表示从第几条开始查
ROWNUM表示查到第几条