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;
|
Last Article: Deleting a Role
Next Article: Unbinding a Role
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.