Difference Between Primary Key and Unique Key
Difference Between Primary Key and Unique Key
Primary Key:
Can be only one in a table
Primary Key is unique key identifier and can not be null and must
be unique.
Unique Key:
Can be more than one unique key in one table.
Unique Constraint
Now you will see above fig. StuId can not have NULL value but
ContactNo can have NULL value.