Eine Einführung in


Add a constraint to a table.

We can add a constraint
  • a foreign key reference
  • a UNIQUE requirement
  • a CHECK constraint
This is in the SQL standard ALTER TABLE
Execute tidy up code silently
Execute set up code

Specific to MySQL
The check gets ignored.