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 <role_name> [ COMMENT = '<string_literal>' ]

Examples

CREATE ROLE role1;
Did this page help you?
Yes
No
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today