oracle add time to date

Solutions on MaxInterview for oracle add time to date by the best coders in the world

showing results for - "oracle add time to date"
Sergio
12 May 2020
1SELECT sysdate + 1 FROM dual; 				-- Tomorrow    12/01/2021 14:27:27
2SELECT trunc(sysdate) + 1 FROM dual; 		-- Tomorrow    12/01/2021 00:00:00
3SELECT sysdate + 1 / 24 FROM dual;					-- 1 hour ahead
4SELECT sysdate + 1 / 24 / 60 FROM dual;				-- 1 minute ahead
5SELECT add_months(trunc(sysdate), 1) FROM dual;   	-- 1 month ahead (no time)
6SELECT trunc(sysdate) + 30 FROM dual;				-- 30 days ahead (no time)
7SELECT add_months(trunc(sysdate), +12*2) FROM dual;	-- 2 years ahead (no time)