Result Type and Attributes

Teradata Vantage™ SQL Functions, Expressions, and Predicates

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

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 .