MCQ Single Best Answer Easy

QWhich type of data constraint in MySQL ensures that each value in a column must be unique?

ID: #15504 Data Constraints and Integrity - MySQL 90 views
Question Info
#15504Q ID
EasyDifficulty
Data Constraints and Integrity - MySQLTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A PRIMARY KEY
  • B UNIQUE
  • C FOREIGN KEY
  • D CHECK
Correct Answer: Option B

Explanation

The UNIQUE constraint in MySQL ensures that each value in a column must be unique. It prevents the insertion of duplicate values into the specified column.

Share This Question

Challenge a friend or share with your study group.