网狐荣耀系列数据库存储脚本GSP_GR_QueryGameTypeID,适用于找不到存储过程 'GSP_GR_QueryGameTypeID'类报错。
脚本内容:
USE [RYPlatformDB] GO /****** Object: StoredProcedure [dbo].[GSP_GR_QueryStockInfo_Fishing] Script Date: 02/21/2019 17:31:01 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF EXISTS (SELECT * FROM DBO.SYSOBJECTS WHERE ID = OBJECT_ID(N'[dbo].[GSP_GR_QueryGameTypeID]') and OBJECTPROPERTY(ID, N'IsProcedure') = 1) DROP PROCEDURE [dbo].[GSP_GR_QueryGameTypeID] GO ---------------------------------------------------------------------- CREATE PROC [dbo].[GSP_GR_QueryGameTypeID] @wServerID int AS BEGIN DECLARE @dwTypeID INT DECLARE @dwKindID INT SELECT @dwKindID=KindID FROM GameRoomInfo WHERE @wServerID=ServerID SELECT @dwTypeID=TypeID FROM GameKindItem WHERE @dwKindID=KindID SELECT @dwTypeID AS dwTypeID END
发表评论