create or replace procedure find_student(studentName varchar2,student_count number)
as
begin
select count(*) into student_count from students where student_name=studentName;
if student_count>0 then
dbms_output.put_line('共找到'||student_count||'名为'||studentName||'的学生');
else
dbms_output.put_line('未找到名为'||studentName||'的学生');
end if;
end;
/
show error:
7/1 pl/sql: sql statement ignored
7/41 pl/sql : ORA-00945 表或视图不存在
我没有建学生表 请问各位大神第一个错误是什么意思?
as
begin
select count(*) into student_count from students where student_name=studentName;
if student_count>0 then
dbms_output.put_line('共找到'||student_count||'名为'||studentName||'的学生');
else
dbms_output.put_line('未找到名为'||studentName||'的学生');
end if;
end;
/
show error:
7/1 pl/sql: sql statement ignored
7/41 pl/sql : ORA-00945 表或视图不存在
我没有建学生表 请问各位大神第一个错误是什么意思?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货