MCQ Single Best Answer Easy

QWhich type of data constraint in MySQL automatically assigns a predefined value to a column if no value is provided during insertion?

ID: #15508 Data Constraints and Integrity - MySQL 81 views
Question Info
#15508Q 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 NOT NULL
  • D DEFAULT
Correct Answer: Option D

Explanation

The DEFAULT constraint in MySQL automatically assigns a predefined value to a column if no value is provided during insertion. It ensures that a default value is used when no explicit value is specified.

Share This Question

Challenge a friend or share with your study group.