Skip to content

Glossary: SQL Beyond the Basics

CHECK constraint

Also written: CHECK

A rule that a condition must not be false for a row to be stored, such as `CHECK (price > 0)`. A NULL passes, so pair it with NOT NULL when a value is required.

Where the book teaches it

Related terms

ConstraintNOT NULL