oracle 分页

oracle 分页
SELECT * FROM
(
SELECT A.*, rownum r
FROM
(
/*SELECT *
FROM Articles
ORDER BY PubTime DESC*/
) A
WHERE rownum <= PageUpperBound
) B
WHERE r > PageLowerBound;


--注释部分可换为任何sql语句


你可能感兴趣的:(oracle 分页)