DEV Community

Anand Singh
Anand Singh

Posted on

Role of Primary key in DBMS

An entity can contain multiple keys but the key which is most suitable from those lists become a primary key.

In the EMPLOYEE table, id can be primary key since it is unique for each employee.

Main features are-
1-It must contain a unique value.
2-It cannot contain null values.

dbms #primarykey

Top comments (0)