15.10 - CAST FROM data type - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Release Number
15.10
Published
December 2015
Language
English (United States)
Last Update
2018-06-05
dita:mapPath
SQL_DDL_15_10.ditamap
dita:ditavalPath
ft:empty

The result type returned by the external function that is to be converted to the type specified by the RETURNS clause.

Example:

  ...RETURNS DECIMAL(9,5) CAST FROM FLOAT...

Whenever a LOB that requires data type conversion is passed to an external UDF, the LOB must first be materialized for the conversion to take place.

The value for data_type can be a UDT.

You cannot specify a character server data set attribute of KANJI1. Otherwise, Teradata Database returns an error to the requestor.