SQLzoo.net

Add a constraint to a table.

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


Specific to DB2
ALTER TABLE documentation.
DB2 seemingly does not permit this operation - any help would be appreciated.

Related links:

  • CREATE, DROP and ALTER