摘要 : use QPTreasureDBdeclare @beginID bigintdeclare @endID bigintdeclare @serID bigint–机器人起始号set @beginID = 210–机器人结束号set @endID = 220–房间号set @serID = 45begin Transaction begin Try —— …
use QPTreasureDB
declare @beginID bigint
declare @endID bigint
declare @serID bigint
–机器人起始号
set @beginID = 210
–机器人结束号
set @endID = 220
–房间号
set @serID = 45
begin Transaction
begin Try
———————————-
while(@beginID<= @endID)
begin
INSERT INTO [QPTreasureDB].[dbo].[AndroidManager]
([UserID]
,[ServerID]
,[MinPlayDraw]
,[MaxPlayDraw]
,[MinTakeScore]
,[MaxTakeScore]
,[MinReposeTime]
,[MaxReposeTime]
,[ServiceTime]
,[ServiceGender]
,[Nullity]
,[CreateDate]
,[AndroidNote])
select
@beginID
,@serID
,’100′
,’10000′
,’1000′
,’10000′
,’1000′
,’100000′
,’16777215′
,’6′
,’0′
,GETDATE()
,’生成机器人’
set @beginID=@beginID + 1
end
———————————
commit Tran
end Try
begin Catch
rollback Tran
declare @sTemp varchar(1000)
select @sTemp=ERROR_MESSAGE()
raiserror(@sTemp,16,1)
end Catch
|
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。