Binding a Role
Function
This statement is used to bind a user with a role.
Syntax
GRANT ([db_name].role_name,...) TO (user_name,...);
Precautions
The role_name and username must exist. Otherwise, an error will be reported.
Example
GRANT role1 TO user_name1;
last updated: 2024-12-10 15:25 UTC - commit: 9e0ebe18fe0b43010decd2c132af9f5362beb29e