15.00 - Maximum Number of Indexes Definable Per CREATE INDEX Statement and Per Data, Hash, or Join Index Table - Teradata Database

Teradata Database SQL Data Definition Language Detailed Topics

Product
Teradata Database
Release Number
15.00
Content Type
Programming Reference
Publication ID
B035-1184-015K
Language
English (United States)

Maximum Number of Indexes Definable Per CREATE INDEX Statement and Per Data, Hash, or Join Index Table

Up to 32 secondary indexes can be defined for one CREATE INDEX statement. Also, up to 32 secondary, hash, and join indexes can be defined for one table.Each multicolumn NUSI created with an ORDER BY clause counts as two consecutive indexes in this calculation (see “Why Consecutive Indexes Are Important For Value‑Ordered NUSIs” on page 336).

Permitting all secondary index operations for one table to be performed at the same time allows the action to be treated as a single transaction; that is, all of the indexes are created, or none of them are created. You can define up to 64 columns for each secondary index you create.

You can also create secondary indexes on user data base tables and join indexes as part of the CREATE TABLE and CREATE JOIN INDEX statements, respectively. See “CREATE TABLE” on page 508 and “CREATE JOIN INDEX” on page 340 for details.