MySQLSESSION_USER() Function
Example
Return the current user name and host name for the MySQL connection:
SELECT SESSION_USER();
Try it Yourself »Definition and Usage
The SESSION_USER() function returns the current user name and host name for the MySQL connection.
Note: This function is equal to theSYSTEM_USER() and theUSER() function.
Syntax
SESSION_USER()
Technical Details
Works in: | From MySQL 4.0 |
---|