Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

SESSION_USER

Example

Return the username and host name for the MySQL connection.

SELECT SESSION_USER();

Definition and Usage

The SESSION_USER() function returns the current username and hostname for the MySQL connection.

Note: This function is equivalent to SYSTEM_USER() and USER().

Syntax

SESSION_USER()

Technical Details

Works in:

 From MySQL version 4.0