网站建设运行情况简介,吕子乔做网站吹的语录,建立个人网站,网页制作课程任务描述 本关任务#xff1a; 修改存储过程pro0101#xff0c;并调用#xff1b; --修改sel_course表中成绩60的记录为成绩10#xff0c;然后将计算机学院所有学生的选课成绩输出#xff1b;
--a、需要先删除存储过程pro0101#xff1b;
drop procedure if exists p… 任务描述 本关任务 修改存储过程pro0101并调用 --修改sel_course表中成绩60的记录为成绩10然后将计算机学院所有学生的选课成绩输出
--a、需要先删除存储过程pro0101
drop procedure if exists pro0101;--b、然后再创建同名的存储过程pro0101
CREATE PROCEDURE pro0101()
AS
BEGINupdate sel_course set scorescore10 where score60;drop table if exists tmp1;CREATE TABLE tmp1(num integer,name char(20),course char(20),score integer);insert into tmp1 SELECT num,stu.name as name,c.name as course,scoreFROM student stu,course c,sel_course swhere stu.nums.studentid and c.ids.courseid and stu.deptcs order by num,course;
END
/