Home »
MCQs »
SQL MCQs »
SQL Constraints Clause MCQs
What is TRUE about NOT NULL Constraint?
6. What is TRUE about NOT NULL Constraint?
- In columns that are subject to the NOT NULL constraint, duplicate values are not allowed.
- When a table's column is declared as NOT NULL, no record in the table can have an empty value for that column.
- By applying the NOT NULL constraint, we will always ensure that the column contains a unique value and won't allow nulls.
- The value will first be checked for certain conditions before inserting it into the column when a NOT NULL constraint applies to a column in the table.
Answer: B) When a table's column is declared as NOT NULL, no record in the table can have an empty value for that column
Explanation:
When a table's column is declared as NOT NULL, no record in the table can have an empty value for that column.