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!

EXECUTE IMMEDIATE with error -ORA-06550:

978485Sep 26 2013 — edited Sep 26 2013

Hello all,

Your help is greatly appreciated ..Iam trying to insert into a table with execute immediate as below ,but ending up with the error..can anyone correct me here please.

EXECUTE IMMEDIATE 'INSERT INTO BATCH_STATEMENT   (QUEUE_ID, TABLE_ID, STATEMENT, QUEUE_SEQUENCE_ID) '||'SELECT '||numQUEUE_ID||' ,96, ' ||varSTMT||',1 FROM DUAL';

ORA-06550: line 1, column 17:
PLS-00103: Encountered the symbol "INSERT INTO PROD.BATCH_STATEMENT VALUES '(" when expecting one of the following:

   := . ( @ % ;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 24 2013
Added on Sep 26 2013
9 comments
1,576 views