0

it is showing error executing statement : 'select acc_id,indus,sec from project where acc_id=?'

i run this statement on my db2 and it was successfully executed ,although the result is 0 rows in the memory.

What can be the issue

  • Seems like you're missing a `from` clause... – Mureinik Dec 29 '14 at 07:09
  • Is that the full error message? It appears that 22001 is generic error number and there should be a more specific number that will tell you what the error is. Here's an example: http://stackoverflow.com/questions/9625336/sqlexception-db2-sql-error-sqlcode-302-sqlstate-22001-sqlerrmc-null – Nick.Mc Dec 29 '14 at 08:50
  • You are including the SQL STATE, please include also the SQL Error, both together define the true error – jclozano Feb 11 '15 at 16:14

0 Answers0