2022-02-24 01:55:06 +00:00
|
|
|
---
|
2022-08-26 19:07:59 +00:00
|
|
|
slug: /zh/sql-reference/statements/alter/role
|
2022-04-10 23:08:18 +00:00
|
|
|
sidebar_position: 46
|
|
|
|
sidebar_label: 角色
|
2022-02-24 01:55:06 +00:00
|
|
|
---
|
|
|
|
|
2022-02-24 01:56:33 +00:00
|
|
|
## 操作角色 {#alter-role-statement}
|
2022-02-24 01:55:06 +00:00
|
|
|
|
2022-02-24 01:56:33 +00:00
|
|
|
修改角色.
|
2022-02-24 01:55:06 +00:00
|
|
|
|
2022-02-24 01:56:33 +00:00
|
|
|
语法示例:
|
2022-02-24 01:55:06 +00:00
|
|
|
|
|
|
|
``` sql
|
|
|
|
ALTER ROLE [IF EXISTS] name1 [ON CLUSTER cluster_name1] [RENAME TO new_name1]
|
|
|
|
[, name2 [ON CLUSTER cluster_name2] [RENAME TO new_name2] ...]
|
2022-09-09 12:01:11 +00:00
|
|
|
[SETTINGS variable [= value] [MIN [=] min_value] [MAX [=] max_value] [CONST|READONLY|WRITABLE|CHANGEABLE_IN_READONLY] | PROFILE 'profile_name'] [,...]
|
2022-02-24 01:55:06 +00:00
|
|
|
```
|