What is the function of the PRIMARY KEY constraint in a MySQL table?
Correct answer
A. Uniquely identify each row in the table.
17 views
A. Uniquely identify each row in the table.
17 views
The PRIMARY KEY constraint uniquely identifies each row in a table. Its values must be unique and cannot be NULL, and a table can have only one primary key (which may span several columns).
MySQL automatically builds an index on it. Referencing another table is the role of a FOREIGN KEY.
For more solved questions like this one, see Database Management Systems MCQs on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.