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: 2025-09-26 14:01 UTC - commit: b678b8de99e440a05c547c994e0d5173f2a868c9