Oracle® OLAP Expression Syntax Reference Release 11.2 Part Number E23381-01 |
|
|
PDF · Mobi · ePub |
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:
YEAR
MONTH
These values are case insensitive.
NUMTOYMINTERVAL(18, 'MONTH')
returns the value +01-06
.