June 2023
Intermediate to advanced
480 pages
12h 39m
English
DBMS_SQL PackageIn Chapter 17, “Native Dynamic SQL,” you encountered the concept of dynamic SQL where SQL statements are built on the fly in PL/SQL. You learned about a PL/SQL feature for creating and running dynamic SQL called native dynamic SQL. In this chapter, you will learn about a second option to write dynamic SQL, the Oracle-supplied package DBMS_SQL.
Even though PL/SQL code that uses native dynamic SQL is easier to understand and has better performance, in some instances the DBMS_SQL package must be used instead. The DBMS_SQL package is used for dynamic SQL in the following cases:
When the columns of the SELECT statement ...
Read now
Unlock full access