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 !
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?