Returns the user name.
USER_NAME ( [ user-id ] )
user-id The user identification number.
The following statement returns the value “DBA”:
SELECT USER_NAME ( 1 ) FROM iq_dummy
The following statement returns the value “SYS”:
SELECT USER_NAME ( 0 ) FROM iq_dummy
Sybase Adaptive Server Enterprise function implemented for Sybase IQ. In Adapter Server Enterprise, USER_NAME returns the user name, not the server user name.