Oracle Date - How to add years to date

后端 未结 7 2037
温柔的废话
温柔的废话 2020-12-05 17:38

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

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 17:47

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

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

提交回复
热议问题