16.20.16.20 - 16.20 - INTERVAL-to-Numeric Conversion - Teradata Vantage NewSQL Engine

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 an INTERVAL with only one field to an exact numeric data type.

This numeric value is the value of the single numeric field in the INTERVAL record.

CAST Syntax



interval_expression

An INTERVAL expression to be converted.

numeric_data_type

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

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