For '+' operator:
TIMESTAMP_ARTITHMETIC_BEHAVIOR
:TIMESTAMP_ARITHMETIC_BEHAVIOR
= 'INTERVAL'
- the decimal is rounded to an integer, and a certain number of full days are added (this is similar to function ADD_DAYS). TIMESTAMP_ARITHMETIC_BEHAVIOR
= 'DOUBLE'
- the fraction of days are added (hours, minutes, ...).INTERVAL '3' MONTH
) on a date whose day is the last day of the month, then the last day of the resulting month is returned (similar to ADD_MONTHS).For '-' operator
TIMESTAMP_ARITHMETIC_BEHAVIOR
:TIMESTAMP_ARITHMETIC_BEHAVIOR
= 'INTERVAL'
- the result is an interval (similar to function DAYS_BETWEEN).TIMESTAMP_ARITHMETIC_BEHAVIOR
= 'DOUBLE'
- the result is a double.INTERVAL '3' MONTH
) on a date whose day is the last day of the month, then the last day of the resulting month is returned (similar to ADD_YEARS and ADD_MONTHS).