sql server创建存储过程

use TestDB
go
if object_ID('GetStrdent','P') is not null--如果存在这个存储过程,则删除
Drop Procedure GetStrdent
go
create procedure GetStudent--创建存储过程
@SNO int,--参数
@SName varchar(20)--参数
AS
select SNO,SName from strdent
where SNO like @SNO and SName like @SName
go

posted @ 2020-01-12 23:44  zhujie-  阅读(919)  评论(0编辑  收藏  举报