USER_NAME Function

Returns the current logged-in username.

Syntax

USER_NAME()

Return Value

The username of the currently logged-in user.

Example

PRINT USER_NAME();