DB2 Version 9.7 for Linux, UNIX, and Windows

Copying tables

A basic COPY performs a simple copy of one table to another. This action is a one-time copy only. A new table is defined based on the definition of the selected table, and the contents are copied to the new table.

Before you begin

To copy a table, you need both:

About this task

Options that are not copied include:

A new table is defined based on the definition of the selected table, and the contents are copied to the new table. You can copy a table into the same database or a different database.

Procedure