CabaretDBProject/Create Scripts/SelectRoomByType.sql

(完整代码) 1KB

IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'Select_RoomInfoByType')
	BEGIN
		PRINT 'Dropping Procedure Select_RoomInfoByType'
		DROP  Procedure  Select_RoomInfoByType
	END

GO

PRINT 'Creating Procedure Select_RoomInfoByType'
GO
CREATE Procedure Select_RoomInfoByType
@RoomType varchar(20)
AS

/******************************************************************************
**		File: 
**		Name: Select_RoomInfoByType
**		Desc: 根据房间类型查寻房间信息 ,该储存过程使用了视图RoomInfo_value
**
**		This template can be customized:
**              
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: 
**		Date: 
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
if('单页显示'=@RoomType)
select * from RoomInfo_value
else
select * from RoomInfo_value where ttype=@RoomType



GO

GRANT EXEC ON Select_RoomInfoByType TO PUBLIC

GO

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。