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

SQL Anywhere 11.0.0 » UltraLite - Database Management and Reference » UltraLite SQL Reference » UltraLite SQL function reference » Alphabetical list of functions

 

USER_ID function [System]

Returns the numeric user ID for the specified user name.

Syntax
USER_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 GROUPO user ID.

SELECT USER_ID( 'GROUPO' );