Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » Alphabetical list of functions

 

SUSER_ID function [System]

Returns the numeric user ID for the specified user name.

Syntax
SUSER_ID( [ user-name ] )
Parameters
  • user-name   The user name for the user ID you are searching for.

Remarks

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

See also
Standards and compatibility
  • SQL/2003   Transact-SQL extension.

Example

The following statement returns the ID for the GROUPO user.

SELECT SUSER_ID( 'GROUPO' );