Teradata – Data Types

Each column in a table is associated with a data type. Data types specify what kind of values will be stored in the column. Teradata supports several data types. Following are some of the frequently used data types.

Data TypesLength (Bytes)Range of values
BYTEINT1-128 to +127
SMALLINT2-32768 to +32767
INTEGER4-2,147,483,648 to +2147,483,647
BIGINT8-9,233,372,036,854,775,80 8 to +9,233,372,036,854,775,8 07
DECIMAL1-16 
NUMERIC1-16 
FLOAT8IEEE format
CHARFixed Format1-64,000
VARCHARVariable1-64,000
DATE4YYYYYMMDD
TIME6 or 8HHMMSS.nnnnnn or HHMMSS.nnnnnn+HHMM
TIMESTAMP10 or 12YYMMDDHHMMSS.nnnnnn or YYMMDDHHMMSS.nnnnnn +HHMM

Leave a Reply