67,511
社区成员
发帖
与我相关
我的任务
分享
try{
............
}catch(Exception e){
......
}finally{
try{
if(rs!=null){
rs.close();
rs=null;
}
if(st!=null){
st.close();
st=null;
}
}catch(){}finally{if(conn!=null&&!conn.isClosed()){conn.close();conn=null;}}
}
String check =request.getParameter("check");
sql="select count(Snumber) as total1 from students where sfjf=1 and grade ="'+check+'"";
rs =smt.executeQuery(sql);
String check =request.getParameter("check");
sql="select count(Snumber) as total1 from students where sfjf=1 and grade ="'+check+'"";
rs =smt.executeQuery(sql);
conn.close();
rs.close();
smt.close();
rs.close();
smt.close();
conn.close();