What is a primary key?medium

Type
conceptual
Topic
primary-key
Frequency
common
Tags
primary, key
Answer

A primary key uniquely identifies each row in a table.

Explanation

It should be unique and non-null, and it provides a stable reference for relationships through foreign keys.

Follow-upHow is a primary key different from a unique key?