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.
Смотрите видео DYN3: Method 2 Dynamic SQL - Non-query DML with bind variables (PL/SQL Channel) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Practically Perfect PL/SQL with Steven Feuerstein 09 Декабрь 2015, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 7,726 раз и оно понравилось 38 людям.