Categories: Context

USER

Returns the user that is currently logged into the system.

Syntax

USER() → varchar

Examples

SELECT USER()
-- testuser@dremio.com
SELECT USER
-- testuser@dremio.com

Usage Notes

This function can be called without the parentheses.