题目:创建存储过程 P4,输入某课程名,查询该课程的平均分,选课人数并输出之。运行之
CREATE PROCEDURE P4(IN course_name VARCHAR(30), OUT avg_grade DECIMAL(4,1), OUT num_students INT)
BEGIN
SELECT AVG(grade) INTO avg_grade, COUNT(sno) INTO num_students
FROM sc join cou on cou.CNO =sc.CNO
WHERE cname=course_name
group by sc.cno
END
一直说语法错误但是感觉没有错啊