Write a PL/SQL code to print all tables up to a number fetched from a table using implicit cursors.
DECLARE
n_student students%ROWTYPE;
BEGIN
SELECT *
INTO n_student
FROM Student
WHERE student_id = 5;
dbms_output.Put_line('Student Details : ID:'
||n_student.student_id
||' Name: '
||n_student.firstName
||' '
||n_student.lastName
||' Reg No: '
||n_student.regNo);
END;
/
Comments
Leave a comment