DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Arrays into Stored Procedures

  1. #1
    Join Date
    Feb 2001
    Location
    UAE
    Posts
    304
    I want to pass arrays (mutiple values for a field) to Stored Procedure in order to process the data on the backend. How can I do this? I have Oracle 8.1.6 on Sun Solaris.
    Agasimani
    OCP(10g/9i/8i/8)

  2. #2
    Join Date
    Mar 2001
    Location
    Ireland/Dublin
    Posts
    688
    You hav to do that:
    create or replace vc_array is table of VARCHAR2(100);

    function get_words (aval in VARCHAR2) return vc_array is
    wordlist vc_array := vc_array();
    i integer;
    begin
    for i in 1..10 loop
    wordlist.extend;
    wordlist(i) := aval || i;
    i:=i+1;
    end loop;
    end;

    function take_words (vval in vc_array) is
    .....


    Originally posted by agasimani
    I want to pass arrays (mutiple values for a field) to Stored Procedure in order to process the data on the backend. How can I do this? I have Oracle 8.1.6 on Sun Solaris.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width