Help Center/
GaussDB(DWS)/
SQL Syntax Reference/
SQL Syntax Reference (8.3.0.x)/
DDL Syntax/
RENAME TABLE
Updated on 2024-09-03 GMT+08:00
RENAME TABLE
Function
RENAME TABLE 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} [, ...]; |
Parameters
- schema
Specifies the schema name.
- table_name
Specifies the name of the table to be modified.
- new_table_name
Specifies the new table name.
Examples
Rename a table:
1
|
RENAME TABLE customer_address TO new_customer_address; |
Helpful Links
Parent topic: DDL Syntax
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot