Example

Return the current user name and host name for the MySQL connection:

SELECT USER();

Definition and Usage

The USER() function returns the current user name and host name for the MySQL connection.

Note: This function is equal to the function and the function.

Tip: Also look at the function.

Syntax

USER()

Technical Details

Works in: From MySQL 4.0


Login
ADS CODE