Supported Data Types

Teradata Vantage™ Data Types and Literals

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K

Teradata Database performs implicit conversion on the following types:

From Byte to:
  • Byte

    Byte types include BYTE, VARBYTE, and BLOB.

  • UDT

    The UDT must have an implicit cast that casts the predefined type to a UDT. To define an implicit cast for a UDT, use the CREATE CAST statement and specify the AS ASSIGNMENT clause. For more information on CREATE CAST, see Teradata Vantage™ SQL Data Definition Language Syntax and Examples, B035-1144.

From Numeric to:
  • Numeric
  • DATE
  • Character
  • UDT

    The UDT must have an implicit cast that casts the predefined type to a UDT. To define an implicit cast for a UDT, use the CREATE CAST statement and specify the AS ASSIGNMENT clause. For more information on CREATE CAST, see Teradata Vantage™ SQL Data Definition Language Syntax and Examples, B035-1144.

From DATE to:
  • Numeric
  • DATE
  • Character
  • UDT

    The UDT must have an implicit cast that casts the predefined type to a UDT. To define an implicit cast for a UDT, use the CREATE CAST statement and specify the AS ASSIGNMENT clause. For more information on CREATE CAST, see Teradata Vantage™ SQL Data Definition Language Syntax and Examples, B035-1144.

From Character to:
  • Numeric
  • DATE
  • Character

    Character types include CHAR, VARCHAR, and CLOB.

  • Period
  • TIME
  • TIMESTAMP
  • UDT

    The UDT must have an implicit cast that casts the predefined type to a UDT. To define an implicit cast for a UDT, use the CREATE CAST statement and specify the AS ASSIGNMENT clause. For more information on CREATE CAST, see Teradata Vantage™ SQL Data Definition Language Syntax and Examples, B035-1144.

From TIME to:
  • UDT

    The UDT must have an implicit cast that casts the predefined type to a UDT. To define an implicit cast for a UDT, use the CREATE CAST statement and specify the AS ASSIGNMENT clause. For more information on CREATE CAST, see Teradata Vantage™ SQL Data Definition Language Syntax and Examples, B035-1144.

From TIMESTAMP to:
  • UDT

    The UDT must have an implicit cast that casts the predefined type to a UDT. To define an implicit cast for a UDT, use the CREATE CAST statement and specify the AS ASSIGNMENT clause. For more information on CREATE CAST, see Teradata Vantage™ SQL Data Definition Language Syntax and Examples, B035-1144.

From INTERVAL to:
  • UDT

    The UDT must have an implicit cast that casts the predefined type to a UDT. To define an implicit cast for a UDT, use the CREATE CAST statement and specify the AS ASSIGNMENT clause. For more information on CREATE CAST, see Teradata Vantage™ SQL Data Definition Language Syntax and Examples, B035-1144.

From UDT to:
  • Predefined data types that are the target of implicit casts defined for the UDT

    To define an implicit cast for a UDT, use the CREATE CAST statement and specify the AS ASSIGNMENT clause. For more information on CREATE CAST, see Teradata Vantage™ SQL Data Definition Language Syntax and Examples, B035-1144.

  • Other UDTs that are the target of implicit casts defined for the UDT

    To define an implicit cast for a UDT, use the CREATE CAST statement and specify the AS ASSIGNMENT clause. For more information on CREATE CAST, see Teradata Vantage™ SQL Data Definition Language Syntax and Examples, B035-1144.