CBSE Class 12 Informatics Practices Question 43 of 79

MySQL SQL Revision Tour — Question 11

Back to all questions
11
Question

Question 11

What is primary key ? What is PRIMARY KEY constraint ?

Answer

A primary key is a unique identifier for each record in a table, and it must be unique and not null. A PRIMARY KEY constraint declares a column or one group of columns as the primary key of the table. This constraint must be applied to columns declared as NOT NULL.