One of the most common forms of dynamic SQL is method 2: non-query DML (constructed at runtime) with a fixed number of bind variables. With method 2, you need the USING clause of EXECUTE IMMEDIATE and this video shows you how.
This video was taken from PLSQLChannel.com, originally recorded before Steven Feuerstein re-joined Oracle in March 2014.
========================================
Practically Perfect PL/SQL with Steven Feuerstein
Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Watch video DYN3: Method 2 Dynamic SQL - Non-query DML with bind variables (PL/SQL Channel) online, duration hours minute second in high quality that is uploaded to the channel Practically Perfect PL/SQL with Steven Feuerstein 09 December 2015. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 7,726 times and liked it 38 visitors.