DEV Community

Anand Singh
Anand Singh

Posted on

1

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay