A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JDBC and Relational Databases
Joined: Sep 23, 2008
Nov 14, 2008 02:13:00
DB2 SQL error: SQLCODE: -313, SQLSTATE: 07001, SQLERRMC: null
Joined: Oct 13, 2005
Nov 14, 2008 04:26:00
Look on the DB2 website for what the error codes mean.
Joined: Apr 14, 2004
Nov 14, 2008 04:36:00
By coincidence, I'm already on the DB2 website so I can save you some time. It means:
"The number of host variables is not correct for the number of parameter markers."
So it sounds like you have more/less parameters in your query than you have bound.
I agree. Here's the link:
subject: Error Code
Invalid Operation while accessing the query
unable to connect to database
SqlException: Attempt to modify an identity column 'USER_ID'
Stored Procedure CachedRowSet
Calling a DB2 UDF within Java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015