NUMTODSINTERVAL - Teradata Vantage NewSQL Engine - 16.20

Teradata Vantageā„¢ Data Types and Literals

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K

Purpose

Converts numeric_value into an INTERVAL DAY(4) TO SECOND(6) value.

Syntax



TD_SYSFNLIB.
Name of the database where the function is located.
numeric_value

A numeric argument.

If this syntax element is NULL, NULL is returned.

interval_unit

A character expression.

interval_unit specifies the unit of value for numeric_value. It must be one of the following case-insensitive values:
  • 'DAY'
  • 'HOUR'
  • 'MINUTE'
  • 'SECOND'

Any value that overflows the INTERVAL DAY(4) TO SECOND(6) value results in an error.

If this syntax element is NULL, NULL is returned.