您的位置:首页 > 数据库 > Oracle

【oracle】 一千条记录查200到300的记录怎么查

2017-11-14 00:00 141 查看
摘要: 一千条记录查200到300的记录怎么查

如何查200到300行的记录?

可以通过top关键字辅助

select top 100 * from table where id is not in (select top 200 id from table);

总结:

查询n到m行记录的通用公式:

select top m * from table where id is not in (select top n * from table)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: