Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle current date plus 1 month

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 + INTERVAL '20' DAY FROM DUAL;		-- 20 days ahead (other way)
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 add months to sysdate 
Sql :: the package java.sql is not accessible 
Sql :: mysql best varchar length size 
Sql :: show all users in mysql 
Sql :: Sql creating roles 
Sql :: how to delete table sqlite 
Sql :: oracle sequence last_number 
Sql :: asp.net core with postgresql deploy on ubuntu 
Sql :: mysql reset auto increment id 
Sql :: Oracle NLS_CHARACTERSET 
Sql :: datetime add 2 hours sql 
Sql :: varchar plsql 
Sql :: create column sql 
Sql :: oracle sql timestamp 
Sql :: mysqldump: couldn 
Sql :: how to create an empty table from an existing table 
Sql :: sql last 3 rows 
Sql :: wsl centos 8 mysql 
Sql :: sql auto timestamp 
Sql :: alter table name 
Sql :: sql like query 
Sql :: mysql config user password 
Sql :: mysql check auto increment value 
Sql :: how to drop a database in sql server when it is in use 
Sql :: show procedures mysql 
Sql :: mysql how to change default charset 
Sql :: select table column name in sql 
Sql :: disable trigger sql oracle 
Sql :: mysql add to number 
Sql :: get comma separated values in sql server 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =