Primary key
|
Unique key
|
1) Doesn't allow Null values.
Because of this we refer PRIMARY KEY = UNIQUE KEY + Not Null CONSTRAINT |
Allows Null value, but only one Null value.
|
2) We can have only one Primary key in a table.
|
We can have more than one unique key in a table.
|
No comments:
Post a Comment