Key Differences Between Primary key and Unique key in mysql
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Primary Key:
NULL
– e.g. MySQL addsNOT NULL
Unique Key:
NULL
valuesNULL
; multiple rows can haveNULL
values and therefore may not be considered “unique”