1.

What Is Dynamic Sql And What Is Its Usage?

Answer»

Dynamic SQL is used by PL/SQL to EXECUTE Data DEFINITION Language (DDL) statements, Data Control (DCL) statements, or Transaction Control statements within PL/SQL blocks. These statements are not stored within the source CODE but are stored as character variables in the program. The SQL statements are created dynamically at RUNTIME by using variables. This is used either using native dynamic SQL or through the DBMS_SQL package.

Dynamic SQL is used by PL/SQL to execute Data Definition Language (DDL) statements, Data Control (DCL) statements, or Transaction Control statements within PL/SQL blocks. These statements are not stored within the source code but are stored as character variables in the program. The SQL statements are created dynamically at runtime by using variables. This is used either using native dynamic SQL or through the DBMS_SQL package.



Discussion

No Comment Found