Numeric-to-Numeric Conversion | Data Types and Literals | Teradata Vantage - Numeric-to-Numeric Conversion - Advanced SQL Engine - Teradata Database

SQL Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
zsn1556242031050.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1143
lifecycle
previous
Product Category
Teradata Vantageā„¢

Converts a numeric expression defined with one data type to a different numeric data type.

CAST Syntax

CAST ( numeric_expression AS
  {
    numeric_data_type [ data_attribute [...] |
    [ data_attribute [...] ]
  }
)
numeric_expression
An expression or existing field having a numeric data type.
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