INTERVAL_MULTIPLY_UDF (VARCHAR, VARCHAR, INTEGER)
Definition
This user-defined function (UDF) is used to multiply an interval of time with a value of 'N' times.
Parameters
INPUT_PART
VARCHAR
The format of the operation. E.g.: DAY
, HOUR TO SECOND,
YEAR TO MONTH
.
INPUT_VALUE
VARCHAR
The interval of time to be multiplied.
INPUT_MULT
INTEGER
The time to multiply the interval of time.
Returns
Returns a varchar with the result of the multiplication.
Usage example
Input:
Output:
PreviousINTERVAL_ADD_UDF (VARCHAR, VARCHAR, VARCHAR, VARCHAR, CHAR, VARCHAR)NextINTERVAL_TO_MONTHS_UDF (VARCHAR)
Last updated