create or replace procedure p_Student_Locate as count1 NUMBER:=0; begin select count(*) into count1 from 学生 ; if(count1>0) then dbms_output.put_line('5'); ELSE dbms_output.put_line('学号未找到'); end if; end ; /