What is primary key in simple words | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is primary key in simple words

28th Jun 2017, 6:51 PM
Prashant
Prashant - avatar
9 Answers
+ 4
You've many attributes of yours in Facebook like name, username, email, phone number, password, website, about, etc. But you can only login with- Either phone number or email and password because these three are the primary keys to access rest of your database information.
28th Jun 2017, 7:16 PM
Sachin Artani
Sachin Artani - avatar
+ 5
primary key is the unique value that identify a record
28th Jun 2017, 6:59 PM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar
+ 3
primary is a unique value to identify something par example table Id Name Lastname 1 ccc ccc 2 ccc ccc person can have same name or last name so you cant identify , while every person have different Id unique
28th Jun 2017, 7:41 PM
Elie Douaihy
Elie Douaihy - avatar
+ 3
a unique identifier
30th Jun 2017, 5:53 PM
Lino Thomas
Lino Thomas - avatar
+ 2
simple it is unique, And in my experience it almost come number,or auto number.
29th Jun 2017, 5:05 AM
Hassan Jaber
Hassan Jaber - avatar
+ 2
they function just as an id u need a person's number to call and not the name
29th Jun 2017, 7:18 AM
Emmanuel Nartey
Emmanuel Nartey - avatar
+ 1
It is a column used to join tables and garuntee the uniqueness of a row
28th Jun 2017, 9:25 PM
CodeNinja
+ 1
It's the unique key value that is assigned to that table
29th Jun 2017, 6:45 AM
Priyansha Kher
Priyansha Kher - avatar
+ 1
primary key is assigned to the column which cannot have duplicate values and null values
1st Jul 2017, 12:36 PM
Akshay Kundap
Akshay Kundap - avatar