Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回指定用户名的数字用户 ID。
SUSER_ID( [ user-name ] )
user-name 您在搜索的用户 ID 的用户名。
VARCHAR
如果不指定 user-name,则返回当前用户的 ID。
提供此函数是为了与其他服务商兼容。也可以使用 USER_ID 函数,其作用完全相同。
SQL/2008 Transact-SQL 扩充。
以下语句返回 GROUPO 用户的 ID。
SELECT SUSER_ID( 'GROUPO' );