Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: HELP! DBMS_SQL.PARSE
If you are truly using:
> v_createstring := 'INSERT INTO TEMP
> ( FIELD_ONE,
> FIELD_TWO)
> VALUES ('||NUM_1||,
> ||NUM_2||' )'
then you will need to put some quotes around that comma.
v_createstring := 'INSERT INTO TEMP ( FIELD_ONE, FIELD_TWO) VALUES ('||NUM_1|| ',' ||NUM_2||' )'
Of course, you've probably figured this out by now.
John A. Pearson <jpearson_at_wellesley.edu> wrote in message
news:3900A515.53A859A0_at_wellesley.edu...
> Hello,
>> to create and drop tables (DDL's) dynamically.
> I have been using this built-in package for a while
>> to pass an INSERT statement.
> However, now I want to use DBMS_SQL
>> code is in.
> I have had little luck.
>
> v_createstring := 'INSERT INTO TEMP
> ( FIELD_ONE,
> FIELD_TWO)
> VALUES ('||NUM_1||,
> ||NUM_2||' )'
>
> The values are variables within the package the this
>> I get the error message of ORA-00984: column not allowed here.
> I have had luck with inserting only the first column.
>
> When I get the second column into the script
>
> Any ideas around this? ....
>
> If you do, please forward an example.
>
> Thanks in advance,
>
> > > > >Received on Sat Apr 22 2000 - 00:00:00 CDT
![]() |
![]() |