Byte Conversion | Data Types and Literals | Teradata Vantage - Byte 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 byte expression to a different data definition.

CAST Syntax

CAST ( byte_expression AS
  {
    { byte_data_type | UDT_data_type } [ data_attribute [...] ] |
    data_attribute [...]
  }
)
byte_expression

An expression in byte format to be cast to a different data definition.

byte_data_type

The new byte type to which byte_expression is to be converted.

UDT_data_type

A UDT that has a cast definition that casts the byte type to the UDT.

To define a cast for a UDT, use the CREATE CAST statement. For more information on CREATE CAST, see Teradata Vantageā„¢ - SQL Data Definition Language Syntax and Examples, B035-1144.

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