Dbms 6th
Dbms 6th
student_name VARCHAR2(100),
class_id NUMBER
);
INSERT INTO N_Roll_Call (student_id, student_name, class_id) VALUES (1, 'Alice', 101);
INSERT INTO N_Roll_Call (student_id, student_name, class_id) VALUES (2, 'Bob', 102);
INSERT INTO N_Roll_Call (student_id, student_name, class_id) VALUES (3, 'Charlie', 101);
student_id NUMBER,
student_name VARCHAR2(100),
class_id NUMBER
);
DECLARE
CURSOR roll_call_cursor IS
FROM N_Roll_Call;
BEGIN
DECLARE
v_count INTEGER;
BEGIN
SELECT COUNT(*)
INTO v_count
FROM O_Roll_Call
IF v_count = 0 THEN
ELSE
END IF;
END;
END LOOP;
COMMIT;
EXCEPTION
ROLLBACK;
END;