Categories: System
USER
Returns the user that is currently logged into the system. This function cannot be used in a reflection.
Syntax
USER() → varchar
Examples
USER exampleSELECT USER()
-- user.name@example.com
SELECT USER
-- user.name@example.com
SELECT "USER"()
-- user.name@example.com
Usage Notes
This function can be called without the parentheses. This function is identical to the functions SESSION_USER
and SYSTEM_USER
.