SHOW ROLES

2020-02-16

The SHOW ROLES statement lists the roles for all databases.

Synopsis

{% include {{ page.version.version }}/sql/diagrams/show_roles.html %}

Required privileges

The user must have the SELECT privilege on the system table.

Example

> SHOW ROLES;
+-----------+
| role_name |
+-----------+
| admin     |
| dev_ops   |
+-----------+

See also