我所用到的表是 https://install.sh.cn/mysql/64.sh
CREATE DEFINER=`root`@`localhost` PROCEDURE `pp1`(
in cla varchar(5),
out cut int)
BEGIN
select count(*) into cut from student where class=cla;
select cno,avg(degree) from student inner join score on student.sno=score.sno where class=cla group by cno;
END
CREATE DEFINER=`root`@`localhost` PROCEDURE `pp3`(
in sn varchar(3),
in cn varchar(5)
)
BEGIN
update score set degree=60 where sno=cno;
END
###实验 5.请撰写一个存储过程 pp5:能根据用户输入的课程号,输出该课程平均分,最高分,最低分到三个参数变量中,以供其它程序使用 求助