Comparison of Primary Indexes and Primary Keys - Analytics Database - Teradata Vantage

Database Introduction

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-09-27
dita:mapPath
gtm1628096154303.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dsm1472253642401
lifecycle
latest
Product Category
Teradata Vantageā„¢

The following table compares PKs and PIs.

Primary Key Primary Index
Identifies a row uniquely. Distributes rows.
Does not imply access path. Defines most common access path.
Must be unique. May be unique or nonunique.
Cannot be null. May be null.
Causes a Unique Primary Index (UPI) or Unique Secondary Index (USI) to be created. N/A
Constraint that ensures referential integrity. Physical access mechanism.
Required only if Vantage is to perform referential integrity checks. Defined for most production tables. Omitted for some staging tables.
If Vantage performs referential integrity checks, column limit is 64. Otherwise, there is no arbitrary column limit. 64-column limit.
Do not change values. You can change values.