Skip to main content

CREATE ROLE

Create a new role.

After creating roles, you can grant object privileges to the role, enable access control security for objects in the system.

See also: GRANT

Syntax

CREATE ROLE [ IF NOT EXISTS ] <role_name> [ COMMENT = '<string_literal>' ]

Examples

CREATE ROLE role1;
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today