Help Center/
MapReduce Service/
Component Operation Guide (LTS)/
Using Hudi/
Hudi Schema Evolution/
SparkSQL Schema Evolution and Syntax Description/
Changing a Table Name
Updated on 2023-04-28 GMT+08:00
Changing a Table Name
Function
The ALTER TABLE ... RENAME command is used to change the table name.
Syntax
ALTER TABLE tableName RENAME TO newTableName
Parameter Description
Parameter |
Description |
---|---|
tableName |
Table name. |
newTableName |
New table name. |
Example
ALTER TABLE table1 RENAME TO table2
Response
You can run the SHOW TABLES command to view the new table name.
Parent topic: SparkSQL Schema Evolution and Syntax Description
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