Skip to main content

Cockroach University: The Primary Key and the Primary Index

In this Cockroach University lesson titled “The Primary Key and the Primary Index,” you’ll learn how to differentiate between the Primary Key and Primary Index. Then we’ll discuss multi-column Primary Keys. In this lesson, you will learn: •The difference between a primary key and a primary index •The difference between a single-column primary key and a composite key Learn more about CockroachDB by signing up for free training at Cockroach University: --------------------------------------------------------------------------------------------------------------------------- Reference Links •Primary Key Constraint: (CockroachDB Docs) •Index Creation: (CockroachDB Docs) •Choosing Index Keys for CockroachDB: (Cockroach Labs Blog post by Ben Darnell) --------------------------------------------------------------------------------------------------------------------------- Careers: CockroachCloud: Blog: Docs: Community Slack: Twitter: