Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle add time to date

SELECT sysdate + 1 FROM dual; 				-- Tomorrow    12/01/2021 14:27:27
SELECT trunc(sysdate) + 1 FROM dual; 		-- Tomorrow    12/01/2021 00:00:00
SELECT sysdate + 1 / 24 FROM dual;					-- 1 hour ahead
SELECT sysdate + 1 / 24 / 60 FROM dual;				-- 1 minute ahead
SELECT add_months(trunc(sysdate), 1) FROM dual;   	-- 1 month ahead (no time)
SELECT trunc(sysdate) + 30 FROM dual;				-- 30 days ahead (no time)
SELECT add_months(trunc(sysdate), +12*2) FROM dual;	-- 2 years ahead (no time)
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle running queries 
Sql :: sql any 
Sql :: phone no data type in sql server 
Sql :: check lock on table in sql server 
Sql :: how to select unique element in sql 
Sql :: oracle apex message quit website 
Sql :: laravel general error 2006 mysql server has gone away 
Sql :: mysql update from select on same table 
Sql :: check if has alpha characters sql 
Sql :: rename a table in sql server 
Sql :: sql server convert date to weekday 
Sql :: full sql mode 
Sql :: how to install sql in anaconda 
Sql :: mysql récupérer le code création de vue 
Sql :: sum sqlalchemy 
Sql :: mysql export database command line 
Sql :: mssql dockere 
Sql :: mysqldump with where clause 
Sql :: postgressql uuid 
Sql :: drop a view in sqlite 
Sql :: MYSQLI_ASYNC 
Sql :: delete db postgres 
Sql :: orcale index size 
Sql :: create scalar function in sql server 
Sql :: get count of null in column sql 
Sql :: create table with index mysql 
Sql :: how to delete a table in mysql 
Sql :: SQL check if record exist 
Sql :: bigquery get last month 
Sql :: postgresql default value 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =