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