Problem with executeQuery()
Hello all,
I've the following code in my JSP. I use Apache Tomcat 6.0 along with MySQL. Problem is i'm unable to execute the following query. The page goes to a wait that is the apache takes almost 99% of the CPU time and there by continues with displayin wither error or the page. I wonder that same code works for another table name "mcq" whose table description is same as that of table "physics_mcq". Plz help me out...... The code is....
rst=stmt.executeQuery("select max(no) from physics_mcq");
rst.next();
nt max=rst.getInt("max(no)");
With regards,
Kiran

