MONTHS_TO_INTERVAL_UDF (VARCHAR, NUMBER)
Definition
This user-defined function (UDF) is used to transform month values to intervals. This is an auxiliary function.
Parameters
INPUT_PART
VARCHAR
The related type of the second parameter. E.g. YEAR TO MONTH
, YEAR
, MONTH
.
INPUT_VALUE
VARCHAR
The month to be converted to intervals.
Returns
Returns a varchar with the input value transform to an interval.
Usage example
Input:
Output:
Last updated