Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

SYSTEM_USER

Example

Retrieve the current username and host details for the MySQL connection.

SELECT SYSTEM_USER();

Definition and Usage

The SYSTEM_USER() function retrieves the current username and host name for the MySQL connection.

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

Syntax

SYSTEM_USER()

Technical Details

Works in:

 From MySQL version 4.0