Updated on 2026-11-06 GMT+08:00

Create Role

Function

  • Creates a new role.
  • Only users with CREATE_ROLE permission on the database can create roles. For example: administrator users, database owner users, and other users who have been granted the CREATE_ROLE permission.
  • Each role must belong to only one database.

Syntax

CREATE ROLE role_name;

Keywords

None.

Examples

CREATE ROLE role1;