This Oracle tutorial explains how to use the Oracle/PLSQL NUMTOYMINTERVAL function with syntax and examples.
The Oracle/PLSQL NUMTOYMINTERVAL function converts a number to an INTERVAL YEAR TO MONTH literal.
The syntax for the NUMTOYMINTERVAL function in Oracle/PLSQL is:
The number to convert to an interval.
The unit to convert to. It must be one of the following values: YEAR or MONTH.
The NUMTOYMINTERVAL function returns an INTERVAL YEAR TO MONTH value.
The NUMTOYMINTERVAL function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle NUMTOYMINTERVAL function examples and explore how to use the NUMTOYMINTERVAL function in Oracle/PLSQL.
For example: