USER

The USER() function returns the name of the current user.

Syntax

USER();

Return Type

String.

Example

SELECT USER();
+--------+
| USER() |
+--------+
| admin@ |
+--------+

Last modified:

Was this article helpful?