RENAME TABLE
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. |
Required Permissions
- SQL permissions
| Permission Description |
|---|
| ALTER permission on a table |
- Fine-grained permission: dli:table:alter
- Metadata services provided by LakeFormation. Refer to the LakeFormation documentation for details on permission configuration.
Example
ALTER TABLE table1 RENAME TO table2
Response
You can run the SHOW TABLES command to view the new table name.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot