Single Choice Easy

QWhich type of data constraint in MySQL ensures that a column can have a NULL value or a unique non-NULL value?

ID: #15509 Data Constraints and Integrity - MySQL 111 views
Question Info
#15509Q 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 INDEX
Correct Answer

Explanation

The PRIMARY KEY constraint in MySQL ensures that a column can have a NULL value or a unique non-NULL value. It allows the uniqueness of values and the presence of NULL as a valid option.

Share This Question

Challenge a friend or share with your study group.