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: Using host arrays in PLSQL

Re: Using host arrays in PLSQL

From: Hicham Douba <hdouba_at_sprynet.com>
Date: 1998/09/30
Message-ID: <361275b2.13305438@news.sprynet.com>#1/1

On Wed, 30 Sep 1998 17:35:13 +0200, Flemming Jans <fj_at_belle.dk> wrote:

>Hi Hicham,
>
>> >Is there any way I can use arrays or host arrays to INSERT/UPDATE/DELETE
>> >for example 100 rows in one operation in PL/SQL (as you can do it in Pro
>> >C)
>>
>> The following is an example that uses the array processing feature of
>> Oracle 8.
>>
>
>Works great ... it doubled the performance in my script ! Thanks a lot
>
>Do you know if I have to call the function bind_array for every bulk insert I
>make.
>(I insert the same 100 array entries many times, but with different data.)
>
>Regards, Flemming
>

When you call bind_array, the contents of the tables are copied from your
private global area to the DBMS_SQL buffers. Consequently, any change you
make to your tables (arrays) should be followed by a bind_array call. Received on Wed Sep 30 1998 - 00:00:00 CDT

Original text of this message

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