Skip to Main Content

PL/SQL Office Hours

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

Header container

April 7, 2020

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.

Highlights

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

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

Session Resources

Ask a Question

Ask The Experts - Right Now!

Do you have a question about FORALL you'd like our experts to answer in their next session? Sign in and submit it here.

Please note that we cannot guarantee to answer all questions. We cannot help you with open Service Requests or account/licensing issues.

Experts

Your Experts
Steven Feuerstein
Steven Feuerstein, Developer Advocate for PL/SQL    
Steven Feuerstein leads a team of Developer Advocate at Oracle Corporation, and is obsessed with the Oracle PL/SQL language, having written ten books on it (all published by O'Reilly Media). He's published over 1400 quizzes on PL/SQL at the Oracle Dev Gym.
Chris Saxon
Chris Saxon, Oracle Developer Advocate for SQL    
Chris Saxon is the quizmaster for the Database Design competitions and an Oracle Developer Advocate for SQL. 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.