The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Alok.
Asked: June 05, 2017 - 11:06 am UTC
Last updated: June 05, 2017 - 2:51 pm UTC
Version: Latest
Viewed 10K+ times! This question is
DECLARE TYPE tabtype IS TABLE OF pTableName%ROWTYPE INDEX BY PLS_INTEGER; TYPE numtype IS TABLE OF NUMBER INDEX BY PLS_INTEGER; raRec tabtype; BEGIN FORALL i IN raTab.FIRST .. raTab.LAST-- SAVE EXCEPTIONS EXECUTE IMMEDIATE 'INSERT INTO ' || pTableName || ' VALUES ' || raTab (i); EXCEPTION WHEN OTHERS THEN NULL; END;
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library