top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to call DDL statements in Oracle PL/SQL

+1 vote
631 views
How to call DDL statements in Oracle PL/SQL
posted Sep 15, 2014 by Suchithra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes
 
Best answer

begin
execute immediate 'create table emp1 as select * from emp';
end;
/

answer Sep 16, 2014 by Pradeep Kumar
+1 vote

BEGIN
EXECUTE IMMEDIATE ‘create table table1(no number(4),name varchar2(15))’;
END;

answer Sep 15, 2014 by Arun Gowda
...