当前位置: > 会员心得 > 文章内容


有些数据存在关仓库BUG运行语句

有些数据存在关仓库BUG运行语句: CREATE procedure Close_warehouse
@Items varbinary(1200),
@uid varchar(10)
AS
set nocount on


decl传奇广告are @ec int
set @ec=0
declare @stat 新开神途发布网int
declare @num int
select @stat=OpenExt ,@num=今日新开传奇sfExtCKNum from warehouse where AccountID=@uid
set @ec=@@error | @ec
if @stat is not null --正常情况是不应该为传奇游戏私服空的
begin
if今日刚开一秒传奇 @stat=@num begin --传奇私服奇缘主仓库
UPDATE warehouse SET Items=@Items where AccountID=@uid
set @ec=@@error | @ec
end else begin
UPDATE ExtWareHouse SET Items=@Items where AccountID=@uid and Number=@stat
set @ec=@@error | @ec
end


end
set nocount off

相关文章