CREATE-ROLE

Name

CREATE ROLE

Description

The statement user creates a role

  1. CREATE ROLE role_name [comment];

This statement creates an unprivileged role, which can be subsequently granted with the GRANT command.

Example

  1. Create a role

    1. CREATE ROLE role1;
  2. Create a role with comment

    1. CREATE ROLE role2 COMMENT "this is my first role";

Keywords

  1. CREATE, ROLE

Best Practice