Complete NOT NULL
Fill in the Blank Easy
Question
Fill in the blank to require a value for the email column:
Code
CREATE TABLE users (
id SERIAL PRIMARY KEY,
email TEXT NOT ___
);
Hint
This constraint prevents the column from being empty.
Explanation
NOT NULL ensures the column must always have a value. Attempting to insert NULL (or omitting the column) will raise an error.
Related Resources
Related Lessons
- Constraints
Learn NOT NULL.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.