Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DDL operation using functions

Rajkumar_29Mar 19 2016 — edited Mar 19 2016

how to perform DDL operation using function

create or replace function f1

return number

as

begin

execute and immediate 'truncate table t1';

execute immediate 'grant select on t1 to sys';

end;

/

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2016
Added on Mar 19 2016
8 comments
1,473 views