Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re:Problem with DYNAMIC SQL
Ehsan,
I don't think so. In the case you've listed the better way would be to do:
EXEC SQL CREATE TABLE dyn1 (col1 VARCHAR2(4));
The use of EXECUTE IMMEDIATE is more suited to statements that are being dynamically created on the fly. This one is not.
Dick Goulet
Pro*C Evangelist
____________________Reply Separator____________________ Author: ehsan sinavalda <ehsanoracle_at_yahoo.com> Date: 12/5/2001 5:05 AM
Hello
As I found in proc docs the following statement should work properly:
EXEC SQL EXECUTE IMMEDIATE
"CREATE TABLE dyn1 (col1 VARCHAR2(4))";
But when I want to compile a PROC prog. that has the above stmt in a function I recevive the following compile error:
sample1.cc: In function `void test()':
sample1.cc:1313: break statement not within loop or
switch
Could someone pls help me resolving this problem?
Thanks
E.
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Dec 05 2001 - 09:02:24 CST
![]() |
![]() |