TO_YMINTERVAL
Purpose
This function converts a string value into an interval (INTERVAL YEAR TO MONTH
).
Syntax
to_yminterval::=
Usage Notes
- The string always has format
[+|-]YY-MM
. Valid values are0
to999999999
for years(YY)
and0
to11
for months(MM)
. - For additional information, refer to TO_DSINTERVAL, NUMTODSINTERVAL, and NUMTOYMINTERVAL.
Example