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 表或視圖不存在
我沒有建學生表 請問各位大神第一個錯誤是什么意思?
uj5u.com熱心網友回復:
students7/41 pl/sql : ORA-00945 表或視圖不存在
uj5u.com熱心網友回復:
存盤程序創建陳述句非法,被忽略。轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/102157.html
標籤:開發
上一篇:關于group by 子句,如group by ‘string’ (string可為任意字串)
下一篇:資料庫效率
