Renames a specified table.
RENAME TABLE has the same function as the following command:
1 | ALTER TABLE table_name RENAME to new_table_name |
1 2 | RENAME TABLE {[schema.]table_name TO new_table_name} [, ...]; |
Specifies the schema name.
Specifies the name of the table to be modified.
Specifies the new table name.
Rename a table:
1 | RENAME TABLE customer_address TO new_customer_address; |