forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2.8 KiB
2.8 KiB
Binding a Role
Function
This statement is used to bind a user with a role.
Syntax
1 | GRANT ([db_name].role_name,...) TO (user_name,...); |
Keywords
None
Precautions
The role_name and username must exist. Otherwise, an error will be reported.
Example
1 | GRANT role1 TO user_name1; |
Parent topic: Data Permissions Management