Skip to content
Advertisement

Query Java doesn’t execute

I’m trying to execute a query on eclipse at my Java program, but it always exit with a exception and don’t execute the query, I read a lot of posts here but no one of them could help me with this.

The error when execute the program:

JavaError

But at the base have data:

DataBase

I don’t know what is wrong with this, who could help me I’m already appreciate!

Advertisement

Answer

You need to call executeQuery once and then read the results in loop for example Updating my comment with working example:-

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement