updatescratchpad.sql
来自「一个基本的酒店管理系统」· SQL 代码 · 共 48 行
SQL
48 行
IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'Update_Scratchpad')
BEGIN
PRINT 'Dropping Procedure Update_Scratchpad'
DROP Procedure Update_Scratchpad
END
GO
PRINT 'Creating Procedure Update_Scratchpad'
GO
CREATE Procedure Update_Scratchpad
@Message varchar(500)
AS
/******************************************************************************
** File:
** Name: Update_Scratchpad
** Desc: 更新便签内容
**
** This template can be customized:
**
** Return values:
**
** Called by:
**
** Parameters:
** Input Output
** ---------- -----------
**
** Auth:
** Date:
*******************************************************************************
** Change History
*******************************************************************************
** Date: Author: Description:
** -------- -------- -------------------------------------------
**
*******************************************************************************/
update Scratchpad set Message=@message
GO
GRANT EXEC ON Update_Scratchpad TO PUBLIC
GO
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?