SYSTEM_USER() Function in MySQL Last Updated : 07 Dec, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report SYSTEM_USER() : This function helps to return the name of the user and hostname for the current MySQL user. And the SYSTEM_USER() function doesn't require any parameter to be passed. The username which will be returned is the name of the user-specified when connecting to the server. And the hostname will be the name of the client host that to whom the user is connected. Note - The function SYSTEM_USER() and SESSION_USER() are almost similar. Syntax : SYSTEM_USER() Parameters : This function doesn't require any parameter or argument to be passed. Returns : The function will return the name of the user and hostname for the current MySQL user. Supported Versions of MySQL : MySQL 5.7 MySQL 5.6 MySQL 5.5 MySQL 5.1 MySQL 5.0 MySQL 4.1 MySQL 4.0 MySQL 3.23 Example : Implementing SYSTEM_USER() function in MySQL as follows. Syntax - SELECT SYSTEM_USER(); Output : //Expected Output will be in this format. username@hostname Now, Let's see the example. SELECT SYSTEM_USER(); Output : author@gfg Comment More infoAdvertise with us Next Article SYSTEM_USER() Function in MySQL V vanshgaur14866 Follow Improve Article Tags : Technical Scripter SQL Technical Scripter 2020 DBMS-SQL mysql +1 More Similar Reads SYSTEM_USER() Function in SQL Server SYSTEM_USER() function :This function in SQL Server is used to return the current user's login name.Features : This function is used to find the current user's login name.This function comes under Advanced Functions.This function doesn't accept any parameter. Syntax : SYSTEM_USER; Parameter :This me 2 min read TIME() Function in MySQL The TIME() function in MySQL is used to extract the time portion from a date or datetime expression, returning the time in the format 'HH:MM'. This function is particularly useful when working with time components in databases, such as scheduling or logging systems. In this article, We will learn ab 4 min read MySQL | SESSION_USER( ) Function The MySQL SESSION_USER() function is used for returning the current user name and host name for the MySQL connection being used by the user. The SESSION_USER() function does not require any parameter to be passed. The user name returned by the SESSION_USER() function is the name of the user-specifie 1 min read SUBSTRING() function in MySQL SUBSTRING() : function in MySQL is used to derive substring from any given string .It extracts a string with a specified length, starting from a given location in an input string. The purpose of substring is to return a specific portion of the string. Syntax : SUBSTRING(string, start, length) OR SUB 2 min read STRCMP() Function in MySQL STRCMP() function in MySQL is used to compare two strings. If both of the strings are same then it returns 0, if the first argument is smaller than the second according to the defined order it returns -1 and it returns 1 when the second one is smaller the first one. Syntax : STRCMP(Str1, Str2) Param 3 min read Like