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

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2020-03-25
dita:mapPath
xzf1512079057909.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.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 .