0

好吧,我试图创建一个 proc 有能力从我的 inv 游戏中删除项目,但我一直失败 ^^ 似乎我的查询不正确或遗漏了一些东西

USE [OVERLIMIT_SHARD_NOW]
GO
/****** Object:  StoredProcedure [dbo].[_Remove_Items_From_Inv]    Script Date: 03/31/2013 04:18:09 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[_Remove_Items_From_Inv] /* by Me */

    @CharID INT

AS

SET NOCOUNT ON;

declare @ID64 INT ;

 (SELECT RefItemID FROM [DataBaseName].[dbo].[_Items] with(NOLOCK) WHERE ID64 = @ID64)

    BEGIN
        UPDATE _Inventory SET ItemID = 0 WHERE ItemID  IN ( SELECT ID64 FROM _Items WHERE RefItemID in ( 46440 , 46441 , 46442 ) and CharID = @CharID )
    END

SET NOCOUNT OFF;
4

0 回答 0