您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
sqlserver2008 存儲過程定義參數,接收參數
发布时间:2022-01-03 22:33:17编辑:雪饮阅读()
-- ================================================
-- Template generated from Template Explorer using
-- Create Procedure (New Menu).SQL
--
-- Use the Specify Values for Template Parameters
-- command (Ctrl-Shift-M) to fill in the parameter
-- values below.
--
-- This block of comments will not be included in
-- the definition of the procedure.
-- ================================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author Author,,Name
-- Create date Create Date,,
-- Description Description,,
-- =============================================
CREATE PROCEDURE test_select_params
@id int,
@name char(100)
AS
BEGIN
select from test_table_1 where id=@id
select from test_table_1 where name=@name
END
GO
這裏給該存儲過程定義了兩個用於接收的參數,分別是id和name
关键字词:sqlserver2008,存儲過程,參數,接收