Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle sql limit results

-- Oracle <= 11g 
SELECT * FROM ( SELECT * FROM emp ORDER BY sal DESC ) WHERE ROWNUM <= 5;
	
-- Oracle 12c +
SELECT * FROM emp ORDER BY sal DESC FETCH FIRST 5 ROWS ONLY;	
Comment

sql oracle limit

SELECT * 
FROM   sometable
ORDER BY name
OFFSET 20 ROWS FETCH NEXT 10 ROWS ONLY;
Comment

PREVIOUS NEXT
Code Example
Sql :: query for all indexes in table postgres 
Sql :: copy table oracle 
Sql :: output oracle 
Sql :: oracle show grants on table 
Sql :: could not find driver (SQL: PRAGMA foreign_keys = ON;) 
Sql :: oracle list columns schema 
Sql :: mysql list databases 
Sql :: wilayah indonesia sql 
Sql :: Caused by: java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver 
Sql :: create table in postgresql 
Sql :: how to remove tables from postgresql 
Sql :: oracle list constraints 
Sql :: install mysql on mac 
Sql :: alter schema sql 
Sql :: RENAME table pl sql 
Sql :: base64 encode sql server 
Sql :: how remove column in mysql 
Sql :: change column name mysql command line 
Sql :: not today mysql 
Sql :: mysql random limit 1 
Sql :: insert column with default value in sql 
Sql :: mysql slave status 
Sql :: mysql loop insert 
Sql :: mysql count grouped rows 
Sql :: timestamp in sqlite 
Sql :: sql missing records from another table 
Sql :: check database size in mysql 
Sql :: hexadec to sql REDSHIFT 
Sql :: show per page table in xampp 
Sql :: how to select department from table 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =