What is the purpose of a primary key in a relational database?

  • Allows NULL values
  • Defines data types
  • Ensures data uniqueness
  • Represents a foreign key
The primary key in a relational database serves the crucial role of ensuring data uniqueness within a table. It uniquely identifies each record, facilitating data integrity and providing a basis for relationships with other tables.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *