Skip to content

CURRENT_USER

SELECT CURRENT_USER();
'exampleUser@localhost'

The CURRENT_USER() function is returning the user name and host name in the format ‘user@hostname’. In this example, the current user is ‘exampleUser’ and the host name is ‘localhost’.