DECLARE
v_s_id enrollments.stu_id%TYPE:=:student_id;
v_c_id enrollments.class_id%type:=:class_id;
BEGIN
INSERT INTO enrollments
(stu_id, class_id, enrollment_date, status)
VALUES (v_s_id, v_c_id, SYSDATE,'Enrolled');
COMMIT;
END;