What is the difference of unique and PK? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference of unique and PK?

5th Sep 2016, 5:07 PM
Sjardi Djoy Willems
Sjardi Djoy Willems - avatar
2 Answers
+ 2
unique key can have null value. and a table can have only one pk
10th Sep 2016, 6:04 PM
Natalya Shtikel
Natalya Shtikel - avatar
0
Your table can contain a few unique columns, but Primary Key must be only one.
16th Sep 2016, 1:54 PM
Denis Shtyrov