Skip to content
Theory · Creating tables · lesson 2 of 11

Constraints

A type keeps values of the wrong kind out of a column. But that is not enough. A supplier with no name, two suppliers with the same name, a rating of 7 on a five-point scale: all of these values fit their types. And all of them spoil the data.

In this lesson

  • Constraints and DEFAULT
  • Common mistake
  • Key points