Skip to Main Content

Java Database Connectivity (JDBC)

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!

stumped by java.sql.SQLException: ORA-00911: invalid character

843854Apr 1 2004 — edited Apr 2 2004
basically, i have a string which will serve as sql statements to insert something into oracle.... below is the println of the (dynamically) generated statement:
INSERT INTO transacteditems VALUES (orderid.currval, bought(song(24, 'ADDICTED', 'SIMPLE PLAN', '10 SEPTEMBER 2003', '0.50', 'N', 'ALT', 'images/SP.JPG')))
calling the method from jsp, i would get an exception:
Message: java.sql.SQLException: ORA-00911: invalid character

however, when i copied the code to run in oracle's sqlplus, it worked fine....

any ideas anyone?? thanks a lot!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2004
Added on Apr 1 2004
10 comments
551 views