声明
USER()
说明
返回当前的用户名与主机名,返回值使用的字符集为 utf8mb4。
示例
obclient> SELECT USER();
+---------------------+
| USER() |
+---------------------+
| root@xxx.xx.xxx.xxx |
+---------------------+
1 row in set
更新时间:2026-06-09 15:02:33
USER()
返回当前的用户名与主机名,返回值使用的字符集为 utf8mb4。
obclient> SELECT USER();
+---------------------+
| USER() |
+---------------------+
| root@xxx.xx.xxx.xxx |
+---------------------+
1 row in set