创建带输入参数的存储过程 student_grade2 用于查询某个指定系学生的考试情况,列出学生的姓名所在系课程名考试成绩

CREATE PROCEDURE student_grade2
@dept CHAR(20) AS
SELECT Sname, Sdept, Cname, Grade
FROM Student s, sc, course c
WHERE Sdept = @dept AND s.sno = sc.sno AND c.cno = sc.cno;