469,348 Members | 1,421 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,348 developers. It's quick & easy.

create table in a procedure

help plz!!
when i try to cretae a table in a procedure like

create procedure blah
is
begin
create table.....
......
end;

i get error PLS-00103 stating that it encountered CREATE when
expecting everything else..

thnx!!
Jul 19 '05 #1
1 23443
you need to execute a dynamic cursor.

declare
str long;
begin
str := 'create table test (i integer)';
execute immediate str;
end;
/
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Lauren Quantrell | last post: by
4 posts views Thread by Michael Jackson | last post: by
2 posts views Thread by Karen Sullivan | last post: by
2 posts views Thread by masri999 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.