BLOGJAVA

DBConnection

Connection conn = getConnection();
stmt =
try{
   for(it ){
   ResultSet rs = stmt.ddd
   while(rs.next()){
dsdas
   }
   rs.close();
   }
   rs.close();
}catch(SQLException e){
dsadas
}finally{
   if(rs!=null){
      rs.close();
   }
   if(stmt!=null){
      stmt.close();
   }

}

posted on 2008-08-29 17:15 七页 阅读(217) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: