mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 12:52:37 +00:00
97866c71b7
# Conflicts: # docs/en/sql-reference/statements/alter/role.md # docs/en/sql-reference/statements/alter/settings-profile.md # docs/ru/sql-reference/statements/alter/role.md # docs/ru/sql-reference/statements/alter/settings-profile.md # src/Access/SettingsProfileElement.cpp # src/Access/SettingsProfileElement.h # src/Interpreters/Context.cpp # src/Interpreters/Context.h # src/Parsers/Access/ASTCreateUserQuery.cpp # src/Parsers/Access/ParserCreateRoleQuery.cpp # src/Parsers/Access/ParserCreateSettingsProfileQuery.cpp # src/Parsers/Access/ParserCreateUserQuery.cpp # src/Parsers/Access/ParserSettingsProfileElement.cpp # tests/queries/0_stateless/01294_create_settings_profile.reference
23 lines
581 B
Markdown
23 lines
581 B
Markdown
---
|
|
slug: /en/sql-reference/statements/alter/role
|
|
sidebar_position: 46
|
|
sidebar_label: ROLE
|
|
---
|
|
|
|
## ALTER ROLE
|
|
|
|
Changes roles.
|
|
|
|
Syntax:
|
|
|
|
``` sql
|
|
ALTER ROLE [IF EXISTS] name1 [RENAME TO new_name |, name2 [,...]]
|
|
[ON CLUSTER cluster_name]
|
|
[ADD|MODIFY SETTINGS variable [= value] [MIN [=] min_value] [MAX [=] max_value] [CONST|READONLY|WRITABLE|CHANGEABLE_IN_READONLY] | PROFILE 'profile_name'] [,...]
|
|
[DROP SETTINGS variable [,...] ]
|
|
[ADD PROFILES 'profile_name' [,...] ]
|
|
[DROP PROFILES 'profile_name' [,...] ]
|
|
[DROP ALL PROFILES]
|
|
[DROP ALL SETTINGS]
|
|
```
|