📄 selectroombytype.sql
字号:
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -