can anyone tell me use of primary key function..? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

can anyone tell me use of primary key function..?

16th Aug 2016, 3:02 PM
Aakash Sharma
Aakash Sharma - avatar
2 Answers
+ 4
primary key is a constraint used for a column....this ensures only unique values are there in the column and no duplicate or NULL values .😃
16th Aug 2016, 4:21 PM
Sandeepan Mahapatra
Sandeepan Mahapatra - avatar
0
it's a good way to pull out a specific row or query object. Especially, when your using primary keys as a way to grab rows. This is common in Web routing.
16th Aug 2016, 9:47 PM
Patrick Zanowski
Patrick Zanowski - avatar