doc-exports/docs/dli/sqlreference/dli_08_0142.html
Su, Xiaomeng 76a5b1ee83 dli_sqlreference_20240227
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>
2024-03-27 22:02:33 +00:00

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;