雖然Oracle數據庫並不支持TOP關鍵字
示例如下
SELECT TOP
要寫成
SELECT …… FROM …… WHERE …… AND rownum <=
rownum 是記錄序號(
至於臨時表
分頁示例
SELECT * FROM
(
SELECT A
FROM
(
SELECT *
FROM Articles
ORDER BY PubTime DESC
) A
WHERE rownum <= PageUpperBound
) B
WHERE r > PageLowerBound
From:http://tw.wingwit.com/Article/program/Oracle/201311/17035.html