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: PL/SQL Automatic BULK

RE: PL/SQL Automatic BULK

From: Christian Antognini <Christian.Antognini_at_trivadis.com>
Date: Thu, 17 Mar 2005 20:51:41 +0100
Message-ID: <2CF83791A616BB4DA203FFD13007824A021440C5@MSXVS02.trivadis.com>


Hi Bruce

>The presentation went into detail about not all queries will
>use array processing - only 'static sql cursor for loop' which
>in the presentation has the form
>
>for j in (select ... From tbl)
>Loop
>Yada yada;
>End loop;

This is true. In fact a PL/SQL block like the following doesn't use = prefetching.

declare
  cursor c is select * from all_tables;
  t all_tables%rowtype;
begin
  open c;
  loop=20
    fetch c into t;
    exit when c%notfound;
  end loop;
end;

HTH
Chris

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Mar 17 2005 - 14:55:13 CST

Original text of this message

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