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

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
imq1591724555718.ditamap
dita:ditavalPath
imq1591724555718.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

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.