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.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
jpx1556733107962.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

A base table can contain a maximum of 2,048 columns. Up to 32 columns can be defined with a LOB data type. See Rules and Restrictions for Large Object Data Types.

A maximum of 2,560 columns can be defined for a base table over its lifetime. Dropping columns does not affect this rule.

If new columns need to be added that would exceed this number, you must create a new table. You can use the SHOW TABLE statement and INSERT … SELECT statements to create and load the spin-off table.