I'm using mysql database. I have a confusion between primary key and unique key.
Please help me where should I create primary and unique key. I mean in which situation we create unique key or primary key .
Primary Key:
NULL
- e.g. MySQL adds NOT NULL
Unique Key:
NULL
valuesNULL
; multiple rows can have NULL
values and therefore may not be considered "unique"