AI engineering glossary · SQL databases

What is NOT NULL?

NOT NULL: A constraint that forbids a column from holding NULL, so every row must supply a real value. It is used for fields that always must exist, and it makes queries simpler because missing values cannot appear there.

Level: beginnerTopic: SQL databases

NOT NULL: an example

email VARCHAR(255) NOT NULL means inserting a user without an email raises an error.

Related terms

More SQL databases terms

Where you learn it

NOT NULL is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.