SUSER_ID Function [System]

Returns an integer user identification number.

Syntax

SUSER_ID ( [ user-name ] )

Parameters

Parameter

Description

user-name

The user name.

Returns

INT

Examples

The following statement returns the user identification number 1:

SELECT SUSER_ID ('DBA') FROM iq_dummy

The following statement returns the user identification number 0:

SELECT SUSER_ID ('SYS') FROM iq_dummy

Standards and Compatibility

  • SQL—Vendor extension to ISO/ANSI SQL grammar.

  • Sybase—Adaptive Server Enterprise function implemented for Sybase IQ.

Related reference
SUSER_NAME Function [System]
USER_ID Function [System]
USER_NAME Function [System]