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

Database Introduction

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
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.