存储过程
use stuinfo
select * from sc where sno='2020005'
create proc p1
as
begin
select * from sc where sno='2020005'
end
--执行
exec p1
--修改
alter proc p1 @sno varchar(13),@cno varchar(13)
as
begin
select sc.*,cou.ccredit from sc,cou where sno=@sno and sc.cno=@cno and sc.cno=cou.cno
end
exec p1 '2020004','20203'
--删除
drop proc p1