在sql中产生随机字符串作为用户密码declare @randtext char(62)
在sql中产生随机字符串作为用户密码
declare @randnum smallint
在sql中产生随机字符串作为用户密码
declare @passwd char(15)
在sql中产生随机字符串作为用户密码
declare @tmpstr char(10)
在sql中产生随机字符串作为用户密码
DECLARE @counter smallint
在sql中产生随机字符串作为用户密码
set @randtext='abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
在sql中产生随机字符串作为用户密码
set @passwd=''
在sql中产生随机字符串作为用户密码
set @tmpstr=''
在sql中产生随机字符串作为用户密码
在sql中产生随机字符串作为用户密码
SET @counter = 1
在sql中产生随机字符串作为用户密码
WHILE @counter <= 15
在sql中产生随机字符串作为用户密码   
BEGIN
在sql中产生随机字符串作为用户密码      
set @randnum=RAND()*61 
在sql中产生随机字符串作为用户密码      
set @tmpstr=SUBSTRING(@randtext,@randnum+1,1)
在sql中产生随机字符串作为用户密码
在sql中产生随机字符串作为用户密码      
select @passwd=rtrim(@passwd)+rtrim(@tmpstr)
在sql中产生随机字符串作为用户密码
在sql中产生随机字符串作为用户密码      
SET NOCOUNT ON
在sql中产生随机字符串作为用户密码      
SET @counter = @counter + 1
在sql中产生随机字符串作为用户密码      
SET NOCOUNT OFF
在sql中产生随机字符串作为用户密码   
END
在sql中产生随机字符串作为用户密码
select @passwd passwordtext

相关文章:

  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案