Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回指定用户名的数字用户 ID。
USER_ID( [ user-name ] )
user-name 您在搜索的数字用户 ID 的用户名。
INTEGER
如果不指定 user-name,则返回当前用户的数字用户 ID。
SQL/2008 服务商扩充。
以下语句返回数字用户名 GROUPO 的数字用户 ID。
SELECT USER_ID( 'GROUPO' );