DB2 Version 9.7 for Linux, UNIX, and Windows

Changing foreign keys

You can change foreign keys for your table or nickname. A foreign key is a column or set of columns in a table or nickname whose values are required to match at least one primary key value of a row of its parent table or nickname.

Before you begin

To alter a table with a foreign key, you must have at least one of the following privileges on the table to be altered:

About this task

A referential constraint is the rule that the values of the foreign key are valid only if either:

Procedure