TO_DSINTERVAL

Teradata Vantageā„¢ Data Types and Literals

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

Purpose

Converts string_value specified as either of the following:
  • SQL interval format
  • ISO duration format

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

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

Syntax



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

A character expression.

If string_value is an empty string or NULL, NULL is returned.