MySQL 8.4 Release Notes
28.3.12 INFORMATION_SCHEMA ENABLED_ROLES 表
The ENABLED_ROLES
table provides information about the roles that are enabled within the current session.
The ENABLED_ROLES
table has these columns:
-
ROLE_NAME
The user name part of the granted role.
-
ROLE_HOST
The host name part of the granted role.
-
IS_DEFAULT
YES
orNO
, depending on whether the role is a default role. -
IS_MANDATORY
YES
orNO
, depending on whether the role is mandatory.