select * from 表 where rownum<=100;
select * from 表 where rownum <=200 and rownum >=100;
本文介绍了使用SQL进行分页查询的两种常见方法。第一种是从第1条记录开始的前100条记录,第二种是从第100条记录开始的后100条记录。这些技巧对于优化大型数据库系统的数据检索非常有用。
select * from 表 where rownum<=100;
select * from 表 where rownum <=200 and rownum >=100;
1249
4321

被折叠的 条评论
为什么被折叠?