棋牌游戏修改机器人昵称数据脚本

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

use QPAccountsDB

go

/* 向TabNickName中插入昵称数据 */

DECLARE @NICK NVARCHAR(50)

DECLARE cur_nick cursor for select nick from nick_new;

BEGIN

OPEN cur_nick ;

FETCH NEXT FROM cur_nick INTO @NICK;

WHILE @@FETCH_STATUS = 0

棋牌游戏修改机器人昵称数据脚本-第1张

BEGIN

INSERT INTO TabNickName(nickname) values (@NICK);

FETCH NEXT FROM cur_nick INTO @NICK;

END

--关闭游标

CLOSE cur_nick;

--释放游标

DEALLOCATE cur_nick;

END

/* 更新机器人昵称 */

DECLARE @id INT,

@NICK NVARCHAR(50)

DECLARE cur_nick cursor for select ID,nickname from TabNickName;

BEGIN

OPEN cur_nick ;

FETCH NEXT FROM cur_nick INTO @id,@NICK;

WHILE @@FETCH_STATUS = 0

BEGIN

UPDATE AccountsInfo SET NickName=@NICK WHERE UserID=@id;

FETCH NEXT FROM cur_nick INTO @id,@NICK;

END

--关闭游标

CLOSE cur_nick;

--释放游标

DEALLOCATE cur_nick;

END

SELECT * FROM AccountsInfo WHERE NickName LIKE '%机器人%'

GO

--

UPDATE AccountsInfo SET IsAndroid=1 WHERE Accounts LIKE '%机器人%'

GO

/*

UPDATE AccountsInfo SET

Accounts=Accounts+'-'+FLOOR(RAND(DATEDIFF(SECOND,'1970-01-01 08:00:00.000',GETDATE()))*100000000)

WHERE Accounts LIKE '%机器人'

GO

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

棋牌游戏修改机器人昵称数据脚本-第2张

GO

DECLARE @SEC BIGINT

SELECT FLOOR(RAND(DATEDIFF(SECOND,'1970-01-01 08:00:00.000',GETDATE()))*100000000)

*/

本站源码仅做学术研究,自娱自乐使用,不得用于赌博性质的非法商业用途!转载请说明出处!
棋牌资源网 » 棋牌游戏修改机器人昵称数据脚本

发表评论

欢迎 访客 发表评论

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

游戏演示 联系客服