17.10 - Table Size and Maximum Number of Columns Per Table - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1184-171K
Language
English (United States)

A CREATE TABLE statement can define up to 2,048 columns.

A base table can have a maximum of 32 LOB columns. This limit includes both predefined LOB columns and LOB UDT, Period, and Geospatial columns. A LOB UDT column counts as 1 LOB column even if the type is a structured UDT that has multiple LOB, Period, or Geospatial attributes.

BLOB, CLOB, Period, and Geospatial columns cannot be a component of any index. Unless at least 1 non-LOB column is constrained as a PRIMARY KEY or as UNIQUE when a primary index, primary AMP index, or no primary index is not explicitly specified, the first column defined for the table cannot have a BLOB, CLOB, Period, or Geospatial data type. This restriction is enforced because, for this particular set of circumstances, Vantage assigns the first column specified in a table definition to be the primary index.