+ 1
What is the difference between unique and primary key?
In SQL
4 Answers
+ 15
in unique constraint , u can have null values ... but in primary u can't have null values
//duplicate values is not allowed in both
https://stackoverflow.com/questions/9565996/difference-between-primary-key-and-unique-key
+ 11
An unique constraint on an attribute would allow null values (albeit only one). An attribute which is designated as primary key is both unique and not null.
+ 1
You Get Everything from here: https://www.essentialsql.com/primary-and-unique-key/
0
thank you for the ans