DB2 Version 9.7 for Linux, UNIX, and Windows

Altering partitioned tables

All relevant clauses of the ALTER TABLE statement are supported for a partitioned table. In addition, the ALTER TABLE statement allows you to ADD new data partitions, roll-in (ATTACH) new data partitions, and roll-out (DETACH) existing data partitions.

About this task

Usage guidelines

To alter a partitioned table from the command line, issue the ALTER TABLE statement.

Before you begin

To alter a partitioned table to detach a data partition the user must have the following authorities or privileges: To alter a partitioned table to attach a data partition, the privileges held by the authorization ID of the statement must include at least one of the following authorities or privileges on the source table: To alter a partitioned table to add a data partition, the privileges held by the authorization ID of the statement must have privileges to use the table space where the new partition is added, and include at least one of the following authorities or privileges on the source table: