Skip to Main Content

Explore Oracle PL/SQL

Free tips and training every month! Subscribe for reminders and more from Office Hours. FAQ

Header container

April 07, 2020

15:00 UTC   Start Times Around the World

Subscribe to be notified of changes to sessions and give us feedback!

Having trouble watching the video on this page? Open the video in your browser.


Beyond the Basics with FORALL
The FORALL statement offers a way to reduce context switches while executing the same non-query DML (e.g., an update statement) multiple times, with different bind values. It also has a whole bunch of knobs and switches to get the most out of it. In this Office Hours session, Steven and Chris explore some of the more advanced aspects of FORALL, including handling sparse collections with INDICES OF and VALUES OF, FORALL with dynamic SQL, and more.


00:10 Introduction, review of resources for Oracle Database developers
06:47 Agenda for the session
07:26 Create table from view taking 3-4 days?!
10:30 Quick review of FORALL
11:47 FORALL and sparse collections
16:37 Working with INDICES OF
20:40 Advanced use case for INDICES OF
24:41 Impact on SQL%BULK* pseudo collections
28:25 Working with VALUES OF
31:05 FORALL and dynamic SQL
33:21 Converting from row-by-row to bulk processing

Session Resources

Your Experts

    Steven Feuerstein

    Steven Feuerstein   

    Steven Feuerstein is a Senior Advisor at Insum Solutions (, and is obsessed with the Oracle PL/SQL language, having written ten books on it (all published by O'Reilly Media). You will find an abundance of quizzes from Steven at the Dev Gym. Enjoy!
    Chris Saxon

    Chris Saxon   

    Chris Saxon is an Oracle Developer Advocate and quizmaster on Dev Gym. His job is to help you get the best out of the Oracle Database and have fun with SQL! He's also part of the answer team on Ask TOM and creates YouTube videos at The Magic of SQL channel.