CREATE ROLE
Syntax
CREATE ROLE [IF NOT EXISTS] role_name
[WITH (createRoleOption [, ...])];Description
Arguments
WITH (createRoleOption [, …])
Parameter Name
Description
Examples
Create a new role
<no-db>/<no-store># USE ROLE useradmin;
+------------+------------+------------+------------------------+
| Type | Name | Command | Summary |
+============+============+============+========================+
| role | useradmin | USE | using role "useradmin" |
+------------+------------+------------+------------------------+
<no-db>/<no-store># CREATE ROLE IF NOT EXISTS new_role;
+------------+------------+------------+------------------------------------------+
| Type | Name | Command | Summary |
+============+============+============+==========================================+
| role | new_role | CREATE | role "new_role" was successfully created |
+------------+------------+------------+------------------------------------------+Create a new role under SysAdmin
Create a new role under SysAdmin , adding new_role as a member
Last updated

