Skip to main content

CURRENT_USER

Returns the user name and host name combination for the account that the server used to authenticate the current client. This account determines your access privileges. The return value is a string in the utf8 character set.

Syntax

CURRENT_USER()

Examples

SELECT CURRENT_USER();

┌────────────────┐
current_user()
├────────────────┤
'root'@'%'
└────────────────┘
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today