Monday, 16 November 2020

SQL: Get currently logged in user details

 

‘user()’ function return currently logged-in user details.

mysql> SELECT user();
+----------------+
| user()         |
+----------------+
| root@localhost |
+----------------+
1 row in set (0.00 sec)

mysql>

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment