Skip to main content

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' |
+---------------------+

Enter to send ยท Shift+Enter for a new line