描述
该语句用于更改现有索引名称或并行度。
语法
ALTER INDEX [ schema. ]index_name
{ parallel_clause
| RENAME TO new_name
};
parallel_clause :
{ NOPARALLEL | PARALLEL integer }
参数解释
| 参数 | 描述 |
|---|---|
| schema. | 指定索引所在的 Schema。如果省略 schema.,则默认索引在您自己的 Schema 中。 |
| index_name | 指定要更改的索引名称。 |
| new_name | 指定索引的新名称。 |
| parallel_clause | 更改索引上查询的并行度。
|
示例
把索引
tbl1_index1的并行度改为3。obclient> ALTER INDEX tbl1_index1 PARALLEL 3; Query OK, 0 rows affected把索引
tbl1_index1名称改为tbl1_index2。obclient> ALTER INDEX tbl1_index1 RENAME TO tbl1_index2; Query OK, 0 rows affected