mysql limit 开始数 ,个数
select * from table_name limit 1000,10;
oracle 三层嵌套
SELECT * FROM
(
SELECT A.*, ROWNUM RN
FROM (SELECT * FROM TABLE_NAME) A
WHERE ROWNUM <= 40
)
WHERE RN >= 21
mysql limit 开始数 ,个数
select * from table_name limit 1000,10;
oracle 三层嵌套
SELECT * FROM
(
SELECT A.*, ROWNUM RN
FROM (SELECT * FROM TABLE_NAME) A
WHERE ROWNUM <= 40
)
WHERE RN >= 21
本文标题:Oracle与Mysql的分页
本文链接:https://www.haomeiwen.com/subject/dcipeqtx.html
网友评论