السلام عليكم ..
اريد معرفة الخطاء عند تنفيض هذا الابلوك ,,,
set serveroutput on format wrap size 1000000
ACCEPT courseID PROMPT 'Enter the course ID to dispaly all student Registed : '
DECLARE
cursor registry_cursor is select student_ID from REGISTRED_TABLE where REGISTRED_TABLE.LECTURE_ID = LECTURE_TABLE.LECTURE_ID and LECTURE_TABLE.COURSE_ID = courseID;
profVal registry_cursor%ROWTYPE;
BEGIN
open registry_cursor;
dbms_output.put_line('The Student name is : ');
LOOP
fetch registry_cursor into profVal;
select first_name , last_name from Student_table where profVal.student_ID;
END LOOP;
END;
/
