创胜定制版本控制脚本,正常是用不到这个脚本,但有个别版本可能需要通过数据库开启一下。
脚本内容:
/*userid 查询*/ select * FROM [RYAccountsDB].[dbo].[AccountsInfo] where [GameID] =100101 /*房/卡根据userid修改*/ update [RYAccountsDB].[dbo].[AccountsInfo] set [UserMedal] = 2 where [UserID] = 3 /*联/盟权限根据userid修改*/ update [RYAccountsDB].[dbo].[AccountsInfo] set [Authority] = 6 where [UserID] = 3 /*测/牌/器权限根据userid修改*/ update [RYAccountsDB].[dbo].[AccountsInfo] set [UserRight] = 536870912 where [UserID] = 3 /*联/盟信息根据userid查询*/ select * FROM [RYAccountsDB].[dbo].[ClubMember] where [UserID] =1 /*联/盟积分根据userid和clubid修改*/ update [RYAccountsDB].[dbo].[ClubMember] set [Score] = 100000 where [UserID] =1 and [ClubID] = 532418 update [RYAccountsDB].[dbo].[ClubMember] set [Score] = 100000 where [UserID] =3 and [ClubID] = 532418 update [RYAccountsDB].[dbo].[ClubMember] set [Score] = 100000 where [UserID] =5 and [ClubID] = 532418 /*联/盟积分根据id修改*/ update [RYAccountsDB].[dbo].[ClubMember] set [Score] = 10000 where [ID] = 1
使用方法:
1、打开数据库SQL Server
如打开SQL Server 2014
2、新建查询
新建查询窗口,打开地方看上图,新建后如下图:
3、执行脚本
输入以上脚本内容,执行就可以:
END!!!
- 1、打开数据库SQL Server
- 2、新建查询
- 3、执行脚本
发表评论