Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

fetch first 10 rows in oracle sql developer

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;
 
PREVIOUS NEXT
Tagged: #fetch #rows #oracle #sql #developer
ADD COMMENT
Topic
Name
5+4 =