Oracle Date - How to add years to date

kalls picture kalls · Feb 16, 2012 · Viewed 160k times · Source

I have a date field

DATE = 10/10/2010

sum = 4 (this are number of years by calculation)

is there a way to add four years to 10/10/2010 and make it 10/10/2014?

Answer

sgowd picture sgowd · Feb 16, 2012

Try adding months (12 * number of years) instead. Like this-

add_months(date'2010-10-10', 48)