DB2 Version 9.7 for Linux, UNIX, and Windows

Changing primary keys

You can change the primary key for the table that you are creating. A primary key is a column or set of columns that can be used to identify or access a particular row or rows. A primary key is a unique key, that is, it is a key that is constrained so that no two of its values are equal. A table cannot have more than one primary key, and the columns of a primary key cannot contain null values.

Before you begin

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

Procedure