17.10 - Result Type and Attributes - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
SQL_Functions__Expressions__and_Predicates.Upload_071421/djk1612415574830.ditamap
dita:ditavalPath
SQL_Functions__Expressions__and_Predicates.Upload_071421/wrg1590696035526.ditaval
dita:id
kby1472250656485

TYPE returns a CHAR(n) character string that contains the name of the data type of the expression.

When the argument is a function or operation, TYPE returns a character string that contains the result type of the function or operation. For rules on the result type for an operation or function, refer to the documentation for the specific function or operation.

The result type, character set, format, and title for TYPE appear in the following table.

Data Type Format Title
CHAR(n) CHARACTER SET LATIN X(39) Type(named_expression)

For a list of the supported data types, see Teradata Vantage™ - Data Types and Literals, B035-1143. For information on geospatial types, see Teradata Vantage™ - Geospatial Data Types , B035-1181 .