Numeric-to-INTERVAL Conversion - 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

Convert numeric data to an INTERVAL value with a single DateTime field.

CAST Syntax



numeric_expression
An expression or existing field having a numeric data type.
interval_data_type

The data type to which the expression is to be converted.

data_attribute
One of the following data attributes:
  • NAMED
  • TITLE