ORACLE:
SELECT * FROM
(
SELECT 表名.*, ROWNUM AS CON FROM 表名 WHERE ROWNUM <= 100 AND 其它查询条件 ORDER BY 排序条件
)
WHERE CON >=10;
MYSQL:
select * from 表名 limit 10,100;
时间: 2024-10-14 20:18:02
ORACLE:
SELECT * FROM
(
SELECT 表名.*, ROWNUM AS CON FROM 表名 WHERE ROWNUM <= 100 AND 其它查询条件 ORDER BY 排序条件
)
WHERE CON >=10;
MYSQL:
select * from 表名 limit 10,100;