Below is my snippet where I want to check in loop for all the queries passed that whether it starts with "SELECT" But I get the first query as true despite other queries are select
I get true in if(results[i].startsWith("SELECT")) only for the first select and after that for all other select's I get false
Nicola Garofalo
Ranch Hand
Joined: Apr 10, 2010
Posts: 308
posted
0
I tried it and it works...
Bye,
Nicola
Happy S Singh
Ranch Hand
Joined: Nov 14, 2011
Posts: 47
posted
0
yeah its working.but now I am stuck with other exception "java.sql.SQLException: error occurred during batching: batch must be either executed or cleared"
I am getting "java.sql.SQLException: error occurred during batching: batch must be either executed or cleared" in the below code.I want to execute two queries.