Oracle Date - How to add years to date
问题 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? 回答1: Try adding months (12 * number of years) instead. Like this- add_months(date'2010-10-10', 48) 回答2: Use add_months Example: SELECT add_months( to_date('10-OCT-2010'), 48 ) FROM DUAL; Warning add_months, returns the last day of the resulting month if you input the last day of a month to begin with. So add_months(to_date('28-feb-2011'