2022年1月21日 星期五

Oracle sql 抓取 result set 後的指定筆數

 Oracle sql 抓取 result set 後的指定筆數


1
2
3
4
5
6
7
8
select *
from mytable
--第一筆不要
offset 1 rows
--只要三筆
fetch next 3 rows only
<button class="copy-button">複製</button>

參考

Oracle PL/SQL: 取得排序後的第 n ~ m 筆資料

https://tomkuo139.blogspot.com/2009/06/plsql-n-m.html