Help Center/
GaussDB/
Feature Guide(Centralized_8.x)/
Partitioned Table/
Partitioned Table O&M Management/
RENAME PARTITION/
Renaming a Partition in a Partitioned Table
Updated on 2024-06-07 GMT+08:00
Renaming a Partition in a Partitioned Table
You can run ALTER TABLE RENAME PARTITION to rename a partition in a partitioned table.
For example, rename the partition date_202001 in the range partitioned table range_sales by specifying the partition name.
ALTER TABLE range_sales RENAME PARTITION date_202001 TO date_202001_new;
Alternatively, rename the partition corresponding to '0' in the list partitioned table list_sales by specifying a partition value.
ALTER TABLE list_sales RENAME PARTITION FOR ('0') TO channel_new;
Parent topic: RENAME PARTITION
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