网狐棋牌平台的打乱注册ID混乱数据脚本

自助开通VIP,整站资源任意下载

@BeginTime INT
@EndTime INT
set @BeginTime= 1
set @EndTime= 180000   --打乱多少次,比GameIdentifier表最大的 UserID 小一些

@FirstID INT
@SecondID INT
@FirstTempID INT
@SecondTempID INT

@MaxD INT
@INT

select  @MaxD=count()   from [QPGameUserDB].[dbo].[GameIdentifier]
set  @= len(CONVERT(10), @MaxD))


while (@BeginTime<@EndTime)
BEGIN

set @FirstID= @BeginTime+(cast((cast(power(10,(cast((@Count-1)rand(checksum(newid())) as int)+1)) as int))rand(checksum(newid())) as int))+1
set @SecondID= @MaxD-(cast((cast(power(10,(cast((@Count-1)rand(checksum(newid())) as int)+1)) as int))rand(checksum(newid())) as int))+1
select   @FirstID, @SecondID ,@MaxD
if @FirstID > @MaxD
begin
  set @FirstID=@MaxD-(cast((cast(power(10,(cast((@Count-2)rand(checksum(newid())) as int)+1)) as int))rand(checksum(newid())) as int))
end
if @SecondID > @MaxD
begin
  set @SecondID=@MaxD-(cast((cast(power(10,(cast((@Count-1)rand(checksum(newid())) as int)+1)) as int))rand(checksum(newid())) as int))
end
select   @FirstID, @SecondID, @MaxD
@FirstTempID = GameID from GameIdentifier where UserID 
@SecondTempID = GameID from GameIdentifier where UserID 

网狐棋牌平台的打乱注册ID混乱数据脚本

-- @FirstTempID , @SecondTempID

GameIdentifier set GameID = GameID10 where UserID 
GameIdentifier set GameID = @FirstTempID where UserID 
GameIdentifier set GameID = @SecondTempID where UserID 

网狐棋牌平台的打乱注册ID混乱数据脚本

@FirstTempID = GameID from GameIdentifier where UserID 
@SecondTempID = GameID from GameIdentifier where UserID 
-- @FirstTempID , @SecondTempID

SET @BeginTime=@BeginTime+1
END

本站源码仅做学术研究,自娱自乐使用,不得用于赌博性质的非法商业用途!转载请说明出处!
棋牌资源网 » 网狐棋牌平台的打乱注册ID混乱数据脚本

这里有你所需要的,找专业的人做专业的事!

本站演示 联系客服