Is this possible to convert this "for" in "forall" ?
FOR tempCounter in tempCollection.FIRST .. tempCollection.LAST LOOP
IF tempCollection(tempCounter).execactstockkey IS NULL THEN
RETURN;
END IF;
INSERT INTO tbexectempactstock VALUES tempCollection(tempCounter);
END LOOP;
Also I tried this
FORALL tempCounter in tempCollection.FIRST .. tempCollection.LAST
INSERT WHEN tempCollection(i).execactstockkey IS NOT NULL
THEN INTO tbexectempactstock VALUES tempCollection(tempCounter);
But it pops up me missing SELECT KEYBOARD
I doubt that you can transform this conditional statement into a
FORALL INSERT. AFORALL MERGEmight be possible, but the best way is in my opinion to do it in a single insert: