跳楼大送分! 谁到这里来顶一下,我好结贴! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是否是连接池的代码不是很好 连接数据库的代码顺序应该这样: Connection conn = null; Statement stmt = null; ResultSet rs = null; try { Class.forName(sDBDriver); conn = DriverManager.getConnection(sConnStr); stmt = conn.createStatement(); rs = stmt.executeQuery(sql); } catch ( Exception e ) { e.printStackTrace(); } finally { if ( rs != null ) rs.close(); if ( stmt != null ) stmt.close(); if ( conn != null ) conn.close(); } 数据库输出值问题!! 有没有工作在win下对mysql支持比较好的ftp服务器? JS中for循环输出出错!!!!! 大虾们,java中一个汉字占两个字节在流中输出高低位如何置换下呢? ?username=122是什么意思? jsp不能编译 求助:jb2005得tomcat下部署jsp时,奇怪的错误 大家能谈谈为request.getPathInfo()这个方法的作用吗? tomcat中的日志纪录是怎么实现的? 兄弟们,帮个忙,看一下一段出错信息 请教 JSP项目中的源文件的“加密问题”??? 字符串处理问题
Statement stmt = null;
ResultSet rs = null;
try
{
Class.forName(sDBDriver);
conn = DriverManager.getConnection(sConnStr);
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
}
catch ( Exception e )
{
e.printStackTrace();
}
finally
{
if ( rs != null ) rs.close();
if ( stmt != null ) stmt.close();
if ( conn != null ) conn.close();
}