跳到主要内容

SHOW ROLES

Lists all the roles assigned to the current user.

Syntax

SHOW ROLES

Output

The command returns the results in a table with these columns:

ColumnDescription
nameThe role name.
inherited_rolesNumber of roles inherited by the current role.
is_currentIndicates whether the role is currently active.
is_defaultIndicates whether the role is the default role of the user.

Examples

SHOW ROLES;

┌───────────────────────────────────────────────────────┐
│ name │ inherited_roles │ is_current │ is_default │
├───────────┼─────────────────┼────────────┼────────────┤
│ developer │ 0falsefalse
public0falsefalse
│ writer │ 0truetrue
└───────────────────────────────────────────────────────┘
开始使用 Databend Cloud
低成本
快速分析
多种数据源
弹性扩展
注册