CREATE ROLE
Descriptionβ
The statement user creates a role
CREATE ROLE role_name [comment];
This statement creates an unprivileged role, which can be subsequently granted with the GRANT command.
Examplesβ
-
Create a role
CREATE ROLE role1;
-
Create a role with comment
CREATE ROLE role2 COMMENT "this is my first role";
Keywordsβ
CREATE, ROLE