RENAME TABLE

Function

Renames a specified table.

Precautions

RENAME TABLE has the same function as the following command:

1
ALTER TABLE table_name RENAME to new_table_name

Syntax

1
2
RENAME TABLE
{[schema.]table_name TO new_table_name} [, ...];

Parameter Description

Examples

Rename a table:

1
RENAME TABLE customer_address TO new_customer_address;

Helpful Links

CREATE TABLE, ALTER TABLE, and DROP TABLE