CAST Character-to-Character Conversion | VantageCloud Lake - Character-to-Character Conversion with CAST - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

ANSI Compliance

CAST is ANSI SQL:2011 compliant, provided the syntax does not specify any data attributes.

Syntax

CAST ( character_expression AS
  {
    character_data_type [ data_attribute [...] ] |
    data_attribute [...]
  }
)

Syntax Elements

character_expression

A character expression to be converted.

character_data_type

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

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