110,537
社区成员
发帖
与我相关
我的任务
分享
static class MyClass
{
static object objLock = new object();
static int value = 0;
static string alph ="ABC......";
static string GetUniq()
{
lock (objLock)
{
digit++;
return string.Format("{0}{1}{2:00000}",alph[value/100000/(26*26)], alph[((value/100000) % (26*26))/26 , value % 100000);
}
}
}
declare @result char(5)
if(@@identity is null)
set @result = '00000'
else
set @result = right('00000' + str(@@identity), 5)