create proc stu_info
@课程编号 int --你编号的类型自己修改
as
select *from 课程表 where 课程编号=@课程编号
go
--SQL中运行调试
exec stu_info '123'
create proc stu_info
@课程编号 CHAR(12) --你编号的类型自己修改
as
begin
select *from 课程表 where 课程编号=@课程编号
end
go
--ceshi
exec stu_info '123'
create proc stu_info
@aa int
as
select * from stuinfo where 课程编号字段名=@aa