1.直接加减数字

SELECT SYSDATE "当前时间", SYSDATE + 1 "加一天", SYSDATE + (1 / 24) "加一小时", SYSDATE + (1 / 24 / 60) "加一分钟", SYSDATE + (1 / 24 / 60 / 60) "加一秒钟", SYSDATE - 1 "减一天"FROM dual;

2.通过ADD_MONTHS()函数

SELECT SYSDATE "当前时间", ADD_MONTHS(SYSDATE, 1) "加一月", ADD_MONTHS(SYSDATE, -1) "减一月", ADD_MONTHS(SYSDATE, 1 * 12) "加一年", ADD_MONTHS(SYSDATE, -1 * 12) "减一年"FROM dual;

3.使用INTERVAL函数

SELECT SYSDATE "当前时间", SYSDATE + INTERVAL '1' YEAR "加一年", SYSDATE + INTERVAL '-1' YEAR "减一年", SYSDATE + INTERVAL '1' MONTH "加一月", SYSDATE + INTERVAL '1' DAY "加一天", SYSDATE + INTERVAL '1' HOUR "加一小时", SYSDATE + INTERVAL '1' MINUTE "加一分钟", SYSDATE + INTERVAL '1' SECOND "加一秒"FROM dual;