Skip to main content
Version: current [24.3.x]

USER

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 example
SELECT USER()
-- user.name@example.com
USER example
SELECT USER
-- user.name@example.com
USER example
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.