Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: FW: pl/sql array processing?

RE: FW: pl/sql array processing?

From: Jesse, Rich <Rich.Jesse_at_qtiworld.com>
Date: Tue, 27 Jan 2004 11:09:25 -0800
Message-ID: <F001.005DE35E.20040127110925@fatcity.com>


Couldn't the declarations be put into a package? We've done this in order to maintain values for the life of the session.

Rich

Rich Jesse                        System/Database Administrator
rich.jesse_at_qtiworld.com           Quad/Tech International, Sussex, WI USA


-----Original Message-----
Sent: Tuesday, January 27, 2004 12:39 PM To: Multiple recipients of list ORACLE-L

Declare
  type numTbl is table of number index by binary_integer;

  refTbl		numTbl;
  i             number;
  str           varchar2(30);

begin
  refTbl (1) := 1;
  refTbl (9) := 1;
  refTbl(15) := 1;
  refTbl(99) := 1;

  forall i in refTbl.first..refTbllast
  begin
    dbms_output.put_line ('i=' || i);
    str:= my_package.function(i);
  end;
end;
/

Of course, it doesn't make sense because varchar2 variable string will be lost after each iteration. May be an actual example that makes sense would motivate more people to respond.
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Jesse, Rich
  INET: Rich.Jesse_at_qtiworld.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Jan 27 2004 - 13:09:25 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US