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

猜你喜欢

转载自www.cnblogs.com/zhujie-com/p/12185329.html
今日推荐