SELECT FROM (
SELECT T.,
ROWNUM RN
FROM ( SELECT * FROM 表名 WHERE 条件 ) T
WHERE ROWNUM <= ( ( currentPage - 1 ) * pageSize + pageSize )
) WHERE RN > ( ( currentPage - 1 ) * pageSize )
SELECT FROM (
SELECT T.,
ROWNUM RN
FROM ( SELECT * FROM 表名 WHERE 条件 ) T
WHERE ROWNUM <= ( ( currentPage - 1 ) * pageSize + pageSize )
) WHERE RN > ( ( currentPage - 1 ) * pageSize )