current_role

Description

Queries roles that are activated for the current user.

Syntax

current_role();
current_role;

Parameters

None.

Return value

Returns a VARCHAR value.

Examples

mysql> select current_role();
+----------------+
| current_role() |
+----------------+
| db_admin       |
+----------------+