Question 12 Marks
What is the utility of primary key in database? Write distinct features of primary keys.
Answer
View full question & answer→Primary key is used to uniquely identify the record in a database. It can be a column or a set of columns in the table. Main features of primary key are as follows:
- It must contain a unique value for each record of table.
- It does not contain null values.