Categories: Context

QUERY_USER

Returns the username of the user that is currently logged in to the system.

Syntax

QUERY_USER() → varchar

Examples

SELECT QUERY_USER()
-- testuser@dremio.com