Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql first

SELECT * FROM (SELECT [COLUMNS] FROM [TABLE] ORDER BY [DATE] DESC)
    WHERE ROWNUM = 1;
-- Oracle 12c:
SELECT * FROM (SELECT [COLUMNS] FROM [TABLE] ORDER BY [DATE] DESC) 
    FETCH FIRST 1 ROW ONLY;
SELECT * FROM (SELECT [COLUMNS] FROM [TABLE] ORDER BY [DATE] DESC) 
    FETCH FIRST 10 ROW ONLY;
SELECT * FROM (SELECT [COLUMNS] FROM [TABLE] ORDER BY [DATE] DESC) 
    FETCH FIRST 10 ROWS ONLY;
Comment

PREVIOUS NEXT
Code Example
Sql :: join in update query in mysql 
Sql :: sql current timestamp table 
Sql :: create index mysql 
Sql :: Postgresql get diff between two dates in Months 
Sql :: mysql show views 
Sql :: postgres list databases 
Sql :: replace null in sql 
Sql :: where id is in list sql 
Sql :: postgre sql create table 
Sql :: mysql auto increment after delete 
Sql :: mysql event last execution 
Sql :: mysql copy table to another table 
Sql :: postgresql connection string c# 
Sql :: oracle apex message quit website 
Sql :: how to insert json value in mysql 
Sql :: postgresql combine values in one field 
Sql :: How can I tell how many Cores SQL Server is actually using? 
Sql :: sql declare variable 
Sql :: rename table name 
Sql :: update join sql 
Sql :: sql server insert into table 
Sql :: oracle apex debug time 
Sql :: postgressql uuid 
Sql :: mysql declare variable 
Sql :: how to create external table in hive 
Sql :: set value to null sql 
Sql :: postgresql grant owner to user 
Sql :: data formate in sql 
Sql :: c# update sql statement 
Sql :: sql time format 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =