How to Execute Dynamic SQL Statements or DDL Statements in PL/SQL?
(Doc ID 1005691.6)
Last updated on NOVEMBER 05, 2019
Applies to:PL/SQL - Version 220.127.116.11 and later
Information in this document applies to any platform.
***Checked for relevance on 03-Dec-2013***
Suppose that you want to execute a SQL statement within a PL/SQL block, but the table name or a column name or a value in the WHERE clause is unknown until execution time. This is known as dynamic PL/SQL. It is often asked how one can get dynamic PL/SQL.
Another common question is how can one execute Data Definition Language (DDL) statements.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!