您的位置:首页 > 博客中心 > 数据库 >

SQL_创建带参数的存储过程

时间:2022-03-14 00:36

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[GetStuInf]
@className nvarchar(50),
@Age int
as
begin
select * from Students where ClassName=@className and Age>@Age
end

 

热门排行

今日推荐

热门手游