CREATE OR REPLACE PROCEDURE multirowupdate AS
TYPE t_record IS TABLE OF employees%ROWTYPE;
t_record record_t;
BEGIN
UPDATE employees
SET salary = salary + 10
RETURNING first_name, salary INTO record_t;
FOR i IN 1..record_t.count
LOOP
dbms_output.put_line(record_t(i).first_name);
dbms_output.put_line(record_t(i).salary);
END LOOP;
END;
Upon executing I am getting the error:
Error(11,7): PLS-00201: identifier 'RECORD_T' must be declared
Why I am getting this error when I have clearly declared this is the declaration section.
I am using employees table in HR schema