Computer Science

Database Primary Key

Understand the role of primary key.

Primary Key uniquely identifies each row

Formula Explanation

A primary key cannot have NULL values and must be unique.

Variables Explained

One primary key per table.

Solved Example

Can a primary key contain duplicate values?
No.

Exam Tip

Foreign key refers to primary key of another table.