A primary key in a relational database is a unique identifier for each record in a table. It ensures that each row has a distinct and non-null value, allowing for efficient data retrieval and maintaining data integrity. The primary key can be a single column or a combination of columns, known as a composite key.
Riya Answered question December 18, 2023
