NUMTOYMINTERVAL converts a number to an INTERVAL YEAR TO MONTH data type.
INTERVAL YEAR TO MONTH
NUMTOYMINTERVAL(n, 'interval_unit')
n can be any numeric expression.
interval_unit is a text expression that specifies the units. It must resolve to one of the following values:
YEARMONTH These values are case insensitive.
NUMTOYMINTERVAL(18, 'MONTH') returns the value +1-06.
Copyright © 2003, 2007, Oracle. All rights reserved.