Do you really have to use a primary key? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Do you really have to use a primary key?

3rd Jul 2016, 8:10 PM
Philipp Thalhammer
3 Answers
+ 2
Yes, coz it creates clustered index which help in faster retrieval of data and also restricts duplicate values in table.
4th Jul 2016, 12:27 PM
Ashutosh Singh
0
Ok. Thx.
5th Jul 2016, 10:30 AM
Philipp Thalhammer
0
Yes it is important when you want to declare a unique column in the table and also used with foreign key...☺☺
12th Jul 2016, 8:45 AM
Taranjeet Singh
Taranjeet Singh - avatar