A primary key uniquely identifies each row.
CREATE TABLE customer (
id INT PRIMARY KEY
);Properties:
- Unique
- Cannot be NULL
- Usually indexed
SQL · Keys, Schema & CTEs
What is a primary key?
A primary key uniquely identifies each row.
CREATE TABLE customer (
id INT PRIMARY KEY
);Properties:
🎯 Put this concept into practice
Solidify this answer with real hands-on interview drills in the browser studio.