CURRENT_USER_NAME()

Function Description

CURRENT_USER_NAME() is used to query the user name you are currently logged in.

Function Syntax

Text
> CURRENT_USER_NAME()

Example

Text
mysql> select current_user_name();
+---------------------+
| current_user_name() |
+---------------------+
| root                |
+---------------------+
1 row in set (0.01 sec)
Last updated on