Databases

Primary key

A unique identifier for each row of a table. It never repeats.

Example

There can be 5 users called John, but only 1 with id 42.

Test yourself: Primary key

SQL databases

Which column works as the primary key of a users table?

Lessons that use it

More databases terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.