PL/SQL block problem: No data found error

后端 未结 5 1999
眼角桃花
眼角桃花 2020-12-02 14:29
SET SERVEROUTPUT ON
DECLARE
    v_student_id NUMBER := &sv_student_id;
    v_section_id NUMBER := 89;
    v_final_grade NUMBER;
    v_letter_grade CHAR(1);
BEGIN         


        
5条回答
  •  被撕碎了的回忆
    2020-12-02 15:02

    Your SELECT statement isn't finding the data you're looking for. That is, there is no record in the ENROLLMENT table with the given STUDENT_ID and SECTION_ID. You may want to try putting some DBMS_OUTPUT.PUT_LINE statements before you run the query, printing the values of v_student_id and v_section_id. They may not be containing what you expect them to contain.

提交回复
热议问题