Databases · Junior · Question 5 of 75

What does the NOT NULL constraint do?

Explanation

Use UNIQUE to forbid duplicates and DEFAULT to set a default value. Marking required columns NOT NULL catches bugs early.

Further reading

Problem with a question

Databases · Junior · question 5

Test yourself

Take the Databases · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz