Primary Key Purpose
Multiple Choice Easy
Question
What is the purpose of a primary key?
Hint
Think about how you find one specific row.
Explanation
A primary key uniquely identifies each row. No two rows can share the same primary key value, and it cannot be NULL. This guarantees you can always find exactly one row by its primary key.
Related Resources
Related Lessons
- Constraints
Learn about primary keys.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.