asked 232k views
3 votes
What is the purpose of a primary key?

2 Answers

1 vote

Answer:

A primary key is a special relational database table column (or combination of columns) designated to uniquely identify each table record. A primary key is used as a unique identifier to quickly parse data within the table. ... It must contain a unique value for each row of data.

answered
User Danny Herbert
by
7.8k points
7 votes

Answer:

Primary key:

A primary key is the collection of field value which persist unique value in the table. The primary key value can be use to represent the entire record throughout the table. In the database, each table only contain one primary key.

The purpose of the primary key is used to implemented the relationship within the two tables in the database. More explicitly the primary key is define as, primary key is "target" that the foreign key can easily referenced. It basically consist multiple attributes in the table.

answered
User Pjhsea
by
8.2k points

No related questions found