MCQ Practice Single Best Answer Topic: Data Constraints and Integrity - MySQL

Q Which type of data constraint in MySQL ensures that a column must have a value?

Question ID
#15503
Subchapter
Data Constraints and Integrity - MySQL
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A PRIMARY KEY
  • B UNIQUE
  • C NOT NULL
  • D DEFAULT
Correct Answer: C

Explanation

The NOT NULL constraint in MySQL ensures that a column must have a value. It prevents the insertion of NULL values into the specified column.

Share This Question

Share this MCQ with your friends or study group.