SYSTEM_USER()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Returns the current authenticating username and hostname.
USAGE
SYSTEM_USER()
DETAILS
SYSTEM_USER()
is an information function that returns the current authenticating user name and host name combined in a string using a @
as a separator.
The user and host names are those that were used to authenticate the current client connection.
The return value can differ from that of CURRENT_
EXAMPLES
SELECT SYSTEM_USER();
+------------------+
| SYSTEM_USER() |
+------------------+
| tester@localhost |
+------------------+