Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7175335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:16:07+00:00 2026-05-28T16:16:07+00:00

Does anyone know if its possible to use Bulk insert from following code: FORALL

  • 0

Does anyone know if its possible to use Bulk insert from following code:

   FORALL I IN IBT_KONTIDS.FIRST .. IBT_KONTIDS.LAST
   INSERT INTO EX_TABLE VALUES (IBT_KONTIDS(I), IBT_PROJNUMS(I), CURRENTUSER, SYSDATE);

What I am trying to achieeve is a fast insert into EX_TABLE from my 2 arrays and additional parameters like userinfo and current time. Thanks in advance !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:16:09+00:00Added an answer on May 28, 2026 at 4:16 pm

    I don’t think so. But, even if you could why would you want to? You’re asking for more trouble than I could possibly name. What happens if your two arrays don’t have the same number of records in them? What happens if they were collected into the array in a different order?

    Why not just use a join collect everything into 1 cursor and then insert that?

    SQL>
    SQL> create table blah as
      2   select a.*
      3        , cast( null as varchar2(30) ) as usr
      4        , cast( null as date ) as dt
      5        , cast( null as varchar2(30) ) as object_name
      6     from user_tables a
      7    where 1 = 0;
    
    Table created.
    
    SQL>
    SQL> declare
      2
      3    cursor c_tab is
      4     select a.*, user, sysdate, b.object_name
      5       from user_tables a
      6       join user_objects b
      7         on a.table_name = b.object_name
      8            ;
      9
     10    type t__tab is table of c_tab%rowtype index by binary_integer;
     11    t_tab t__tab;
     12
     13  begin
     14
     15     open c_tab;
     16
     17     loop
     18       fetch c_tab bulk collect
     19        into t_tab limit 1000;
     20
     21       exit when t_tab.count = 0;
     22
     23       forall ii in t_tab.first .. t_tab.last
     24         insert into blah
     25         values t_tab(ii)
     26                ;
     27
     28       commit;
     29
     30     end loop;
     31
     32     close c_tab;
     33
     34  end;
     35  /
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know if its possible to use phing to copy an entire folder
Does anyone know whether if its possible to insert binary data into an SQL
Does anyone know if its possible to use standard frameworks etc in silverlight &
Does anyone know if it's possible to use regex capture within Apache's DirectoryMatch directive?
Does anyone know if it's possible to use MSpec with MBUnit instead of NUnit?
Does anyone know if it's possible to not use the navigation properties feature of
Does anyone know if its possible to create a new property on an existing
Does anyone know if its possible to turn off dreamweavers custom icons that it
Does anyone know if its possible to set the amount of memory available in
I was wondering does anyone know if its possible to open a wifi and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.