USER

Returns the name of the current user.

Syntax

USER();

Return Type

String.

Example

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

Last modified: February 24, 2023

Was this article helpful?