USER_NAME function [System]

Returns the user name for the specified user ID.

Syntax
USER_NAME( [ user-id ] ) 
Parameters
  • user-id   The user ID of the user you are searching for.

Remarks

If you do not specify user-id, the user name of the current user is returned.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the user name for user ID 101.

SELECT USER_NAME( 101 );