Primary Key | Unique Key |
|---|---|
A primary key uniquely identifies each record in a table. | Unique Key prevents duplicate values in a column while allowing |
Cannot contain NULL | NULL handling depends on DBMS |
One primary key constraint per table | Multiple unique constraints possible |
Can be composite | Can be composite |
Loading…