create function [dbo].[IntToHex](num int)returns varchar(100)asbegindeclare re varchar(100)set rewhile num>0select resubstring(0123456789ABCDEF,num%161,1)re,numnum/16return(re)end
用到了之前的数字转换为16进制数函数 IntToHex create function [dbo].[IntToHex](num int)returns varchar(100)asbegindeclare re varchar(100)set rewhile num>0select resubstring(0123456789ABCDEF,num%161,1)re,numnum/16return(re)endcreate function [dbo].[GetUser…