Forums Register Login

sql insert statement giving sqlcode: -206 sqlstate: 42703

+Pie Number of slices to send: Send
hi while inserting data from one database table to another database table i am am able to fetch recors from source database but while inserting into target database i am getting error sqlcode: -206

sqlstate: 42703

when i checked out error msg but even then i am unable to correct it...please help..

code:


rowsAffected= gffUserDet.executeUpdate(insertSql1);
+Pie Number of slices to send: Send
Are you getting an exception?
Can you please post the whole trace of the error..
+Pie Number of slices to send: Send
DB2 has that sqlstate and code defined as "An undefined column or parameter name was detected."

So maybe ensure your column names match up to those in the table?

Also, might want to put a space between the keyword "VALUES" and the opening paren in your value list. Driver may be looking for a space there.
I don't like that guy. The tiny ad agrees with me.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 117739 times.
Similar Threads
PreparedStatement error shown
ID_NAME in two tables
Using ResultSet
multiple processes... only want one
Inserting single column values of database table into multiple columns of jtable and do comparison
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:35:18.