doc-exports/docs/dli/sqlreference/dli_08_0142.html
Su, Xiaomeng 04d4597cf3 dli_sqlreference_0511_version
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>
2023-11-02 14:34:08 +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,...);

Keyword

None

Precautions

The role_name and username must exist. Otherwise, an error will be reported.

Example

1
GRANT role1 TO user_name1;