|
|
The RENAME TABLE statement defines a new name for an existing table in
the DBEnvironment.
Application Programs
RENAME TABLE [Owner.]TableName TO NewTableName
- [Owner.]TableName
designates the table to be renamed.
- NewTableName
is the new table name.
All indexes, columns, default columns, constraints, referential
authorization, rules, and user authorities tables dependent on a
renamed table will be renamed.
When using RENAME command, data and grants made for tables
are carried forward for the new name. No unload, load data, or
recreating index is necessary.
All views dependent on a renamed table will be dropped.
If a table has check constraints, then that table cannot be
renamed.
You must have DBA authority to use this statement.
RENAME TABLE PurchDB.Parts to NewParts;
|