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

Home -> Community -> Usenet -> c.d.o.misc -> Re: arrays in pl/sql

Re: arrays in pl/sql

From: JMcdan4850 <jmcdan4850_at_aol.com>
Date: 31 May 1999 05:52:13 GMT
Message-ID: <19990531015213.27449.00003468@ng-fq1.aol.com>


you could use the table of type
ie

/* variable declarations below */

cursor_exists boolean;
variable_incrementer binary_integer;

table_format is table of table_name%rowtype index by binary_integer;

table_data table_foramt;

down in your cursor----

cursor cursor_1 is

            select tablename.*
            from tablename;

begin
          open cursor_1;
          cursor_Exists := true;
          while cursor_exists = true 
          loop
                 fetch cursor_1 into table_data(variable_incrementer);
                 if cursor_1%notfound then
                     cursor_exists := false;
                 else
                         /* other code */
                 end if;
         end loop;
         close cursor_1;

end; Received on Mon May 31 1999 - 00:52:13 CDT

Original text of this message

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