This statement is used to rename certain names of existing table properties. This operation is synchronous, and the return of the command indicates the completion of the execution.
grammar:
ALTER TABLE [database.]table alter_clause;
The alter_clause of rename supports modification of the following names
grammar:
RENAME new_table_name;
grammar:
RENAME ROLLUP old_rollup_name new_rollup_name;
grammar:
RENAME PARTITION old_partition_name new_partition_name;
:::tip Tips This feature is supported since the Apache Doris 1.2 version :::
Modify the column name
grammar:
RENAME COLUMN old_column_name new_column_name;
Notice:
ALTER TABLE table1 RENAME table2;
ALTER TABLE example_table RENAME ROLLUP rollup1 rollup2;
ALTER TABLE example_table RENAME PARTITION p1 p2;
ALTER TABLE example_table RENAME COLUMN c1 c2;
ALTER, TABLE, RENAME, ALTER TABLE