Informatics Practices

What is a primary key? What is its function in a table?

Relational Database

1 Like

Answer

A primary key is a set of one or more attributes/fields which uniquely identifies a tuple/row in a table.

Its function in a table is to uniquely identify tuples or rows and prevent the entry of duplicate rows, thus ensuring data integrity.

Answered By

1 Like


Related Questions