I want to pass a list of char as one parameter to my procedure, I learned that I may use varray. but do I have to declare a varray instance before pass it to my procedure? What I want is something like this:
My_Procedure(['a','b','c','d','e'])
I can pass a list of array directly into the procedure. but what I learned is I have to do like this
create type my_type as varray of varchar;
declare
my_array My_Arraytype;
begin
my_array(1) := 'a';
my_array(2) := 'b';
my_array(3) := 'c';
my_array(4) := 'd';
my_procedure(my_array)
end;
Or is there any way other than varray?
Thanks