After this PR #9272, the `docs/build_help_zip.sh` will run failed. This PR fix this issue. But the help module still has some parse problem, I will fix it in next PR. This CL mainly changes: 1. fix `docs/build_help_zip.sh` error 2. remove `sql-reference-v2` to `sql-reference` 3. modify build extension github action to run `docs/build_help_zip.sh`
1.8 KiB
1.8 KiB
title, language
| title | language |
|---|---|
| ALTER-TABLE-RENAME | zh-CN |
ALTER-TABLE-RENAME
Name
ALTER TABLE RENAME
Description
该语句用于对已有 table 属性的某些名称进行重命名操作。这个操作是同步的,命令返回表示执行完毕。
语法:
ALTER TABLE [database.]table alter_clause;
rename 的 alter_clause 支持对以下名称进行修改
- 修改表名
语法:
RENAME new_table_name;
- 修改 rollup index 名称
语法:
RENAME ROLLUP old_rollup_name new_rollup_name;
- 修改 partition 名称
语法:
RENAME PARTITION old_partition_name new_partition_name;
Example
- 将名为 table1 的表修改为 table2
ALTER TABLE table1 RENAME table2;
- 将表 example_table 中名为 rollup1 的 rollup index 修改为 rollup2
ALTER TABLE example_table RENAME ROLLUP rollup1 rollup2;
- 将表 example_table 中名为 p1 的 partition 修改为 p2
ALTER TABLE example_table RENAME PARTITION p1 p2;
Keywords
ALTER, TABLE, RENAME