Я сталкиваюсь с этой oracle PSQL ошибкой ORA-06533
Declare
type empidvarray is varray(6) of employees.id%type;
empid_array empidvarray:=empidvarray();
c_empid employees.id%type;
i integer(2);
counter number(2);
begin
select count(*) into counter from employees;
select id into c_empid from employees where id =1;
empid_array.extend;
empid_array(10):=c_empid; -- array is trying to assigning the value of uninitialized position 10.
end;
ORA-06532: нижний индекс вне предела ORA-06512: в строке 11
Может ли кто-нибудь помочь решить вопрос PL SQL?
https://techytraining.com/forum/topic/plsql-exception/