Every data value must have an SQL data type. When you define a column in a CREATE TABLE statement, you must specify the data type of the column. Vantage supports the following categories of data types. For a complete list of supported data types and detailed information about each data type, see Teradata Vantage™ - Data Types and Literals, B035-1143.
| Data Type Category | Description | Data Type Examples |
|---|---|---|
| ARRAY/VARRAY | Represents multidimensional data as sequence or matrix. Individual data items have same data type. |
|
| Byte | Represents raw data as logical bit stream in client-system format, not translated by Vantage. Transmitted directly from client system memory. |
|
| Character | Represents characters of given character set. |
|
| DATASET | Complex data type that represents self-describing data stored in schema-defined format. |
|
| DateTime | Represents date, time, and timestamp values. |
|
| Geospatial | Represents geographic information and provides applications that use it with interface to Vantage. |
|
| Interval | Represents a time span--a number of years, months, days, hours, minutes, or seconds. |
|
| JSON | Represents data that is in JSON (JavaScript Object Notation) format. | JSON |
| Numeric | Represents an exact numeric value (integer or decimal) or approximate numeric value (floating point). |
|
| Parameter | Used only with input or result parameters in a function, method, stored procedure, or external stored procedure. |
|
| Period | Represents a time period, a set of contiguous time granules that extends from a beginning bound up to but not including an ending bound. |
|
| UDT (User-Defined Type) | Data type you define to model the structure and behavior of the data your applications use. |
|
| XML | Represents XML data in compact binary form that preserves information set of XML document, including hierarchy and types derived from XML validation. | XML |
For detailed information on data types and the related functions, procedures, methods, and operators that operate on these types, see the following documents:
- Teradata Vantage™ - Data Types and Literals, B035-1143
- Teradata Vantage™ - Geospatial Data Types, B035-1181
- Teradata Vantage™ - JSON Data Type, B035-1150
- Teradata Vantage™ - XML Data Type, B035-1140
- Teradata Vantage™ - SQL Functions, Expressions, and Predicates, B035-1145