SHOW ROLES

The SHOW ROLES statement lists the roles for all databases.

Synopsis

SHOWROLES

Required privileges

The user must have the SELECTprivilege on the system table.

Example

  1. > SHOW ROLES;
  1. +-----------+
  2. | role_name |
  3. +-----------+
  4. | admin |
  5. | dev_ops |
  6. +-----------+

See also

Was this page helpful?
YesNo