主题:求帮助,mysql 存储过程中建立视图
create procedure check_result(in no int,in term char(20))
begin
declare str char(200);
drop view if exists stu_score;
set str=concat('create view if not exists stu_score
as
select cour_name,mark from score,student,course
where student.no=no and student.name = score.stu_name
and course.term=term;');
execute str;
end
begin
declare str char(200);
drop view if exists stu_score;
set str=concat('create view if not exists stu_score
as
select cour_name,mark from score,student,course
where student.no=no and student.name = score.stu_name
and course.term=term;');
execute str;
end