📌  相关文章
📜  在 oracle sql developer 中获取前 10 行 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:31.609000             🧑  作者: Mango

代码示例1
SELECT * FROM (SELECT [COLUMNS] FROM [TABLE] ORDER BY [DATE] DESC)
    WHERE ROWNUM >= 1 AND ROWNUM <=10;
-- Oracle 12c:
SELECT * FROM (SELECT [COLUMNS] FROM [TABLE] ORDER BY [DATE] DESC) 
    FETCH FIRST 10 ROWS ONLY;