Skip to main content
VeloDB Cloud 26.x·Apache Doris 4.x (up to 4.0 supported)·"Since X.Y" tags refer to Apache Doris versionsVersion mapping

USER

Description​

Get the current username and IP that Doris is connected to.

Syntax​

USER()

Return Value​

Returns the current username and IP Doris is connected to. format:<user_name>@<ip>

Examples​

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