EXECUTE IMMEDIATE statement can be used to execute dynamic SQL statements.
Syntax: EXECUTE IMMEDIATE 'User_Code';
--
-- Create/Drop Table using this PLSQL Script or Procedure
-- DLL Script
-- by mfaisal 02-Jan-2020
Declare
---Create
begin
execute immediate 'CREATE TABLE X_DDL_ON_APPS (APPS_ID NUMBER)';
end;
Declare
--Drop with Oracle EBS Package
begin
system.ad_apps_private.do_apps_ddl(schema_name => 'APPS',
ddl_text => 'DROP TABLE X_DDL_ON_APPS ');
end;
No comments:
Post a Comment