I need to assign a collection (a nested table) of varchar2(10) elements to another collection variable the element type of which is varchar2(20). Is there any way to do this, better than building the new collection row by row in a loop?
declare
type TList10 is table of varchar2(10);
type TList20 is table of varchar2(20);
vList10 TList10 := TList10('Test1', 'Test2');
vList20 TList20;
begin
-- This raises PLS-00382
vList20 := vList10;
end;