Oracle8i SQL Reference Release 2 (8.1.6) A76989-01 |
|
Functions, 5 of 121
ADD_MONTHS
returns the date d plus n months. The argument n can be any integer. If d is the last day of the month or if the resulting month has fewer days than the day component of d, then the result is the last day of the resulting month. Otherwise, the result has the same day component as d.
SELECT TO_CHAR( ADD_MONTHS(hiredate,1), 'DD-MON-YYYY') "Next month" FROM emp WHERE ename = 'SMITH'; Next Month ----------- 17-JAN-1981
|
Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|