Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Passing in arrays to a stored procedure
Hi Vijav,
fortunatelly it is possible (as long as you are in Forms 5 or 6):
First you create a package with the definition of a type which is your array or "pl/sql table" (with whatever components you want).
Then you define the parameter of your procedure using this type; in forms you declare a variable of this type, fill it and pass it! See:
type my_rec is record (v1 varchar2(2000), v2 number, v3 date); type my_arr is table of my_rec index by binary_integer;
end pc_types;
/
create or replace procedure my_proc
(x pc_types.my_arr, n binary_integer) isbegin
Don't forget that access to an unidefined position of a pl_sql_table gives you no_data_found...
Hope this helps.
Regards,
Maurício
In article <37cd38dd_at_news1.us.ibm.net>,
"Vijay Mayadas" <vijay_at_winwin.com> wrote:
> Hi
>
> Is it possible to pass in an array of vchars into a PL/SQL stored
procedure.
> If not, are there any convenient work arounds?
>
> Thanks
>
> Vijay
>
>
--
Maurício B. Falleiros <mbf_at_uniconsult.com.br>
Uniconsult Sistemas e Serviços
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Wed Sep 01 1999 - 12:00:30 CDT
![]() |
![]() |