Skip to main content
VeloDB Cloud 26.x is based on Apache Doris 4.x. See Version Mapping.

USER

Description​

Get the current username and IP address of the current connection.

Syntax​

USER()

Return value​

Returns the current username and IP address of the current connection. format:<user_name>@<ip>

Examples​

select user();
+---------------------+
| user() |
+---------------------+
| 'root'@'10.244.2.5' |
+---------------------+