ADD_MONTHS():
The Oracle/PLSQL ADD_MONTHS function returns a date plus n months.
Syntax:
ADD_MONTHS( date1, n )
Arguments:
date1 is the starting date (before the n months have been added).
n is the number of months to add to date1.
Example:
Let's look at some Oracle ADD_MONTHS function examples and explore how you would use the ADD_MONTHS function in Oracle/PLSQL.
ADD_MONTHS('01-Aug-03', 3) would return '01-Nov-03'
ADD_MONTHS('01-Aug-03', -3) would return '01-May-03'
ADD_MONTHS('21-Aug-03', -3) would return '21-May-03'
ADD_MONTHS('31-Jan-03', 1) would return '28-Feb-03'
Thanks for watching..:)