1
array_entries 배열을 초기화하려고합니다. array_fill을 array_fill (0, array_entries)로 시도하지만 dint는 작동합니다.루프 내에서 포스트그레스의 배열을 초기화하는 방법
create or replace function vin_temp_test1(k date,x varchar) RETURNS float AS $$
declare
array_entries int [];
curs4 CURSOR FOR select * from temp_table;
record_type1 record;
fetch curs4 into record_type1;
exit when not found;
loop
-- trying to intialize the array array_entries here
loop
--filling the array inside this loop.
end loop;
end loop;
실제로 선언 섹션 다음에 배열을 원했습니다. 그 안에 값이없는 빈 배열을 의미합니다. – user2569524