用MICROSOFT SQL SERVER 2000的JDBC驱动程序出现错误 use result.closeand connection.close() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不对,是他先用了use result.closeand connection.close()然后再使用 兄台在你使用 close() 方法后不要再用你已经 closed 的对象了或者你在使用完它之后再 close() 它OK ? connection is already closed or connection is failed. Connection conn = ...; Statement stmt=conn.createStatement();String sql = "Select ... From ... Where ...";ResultSet rs = stmt.executeQuery(sql);if( !rs.next() ){ rs.close(); stmt.close(); conn.close();}String str... = rs.getString("...");...rs.close();stmt.close();conn.close();//在此就不能用rs,stmt,conn等对象了除非你再重新open 什么是java的缓存? 求教:Runtime.getRuntime().exec() 调用程序 问题 多线程 producer consumer问题 问一个游戏细节实现 关于深度优先算法和广度优先算法 public interface Cloneable 简单!来者有分 read()的问题? 相信自己,这个问题你一定能回答? 做app里面一个模块聊天室,用mina框架好吗? 关于瓢的问题"Could not find the main clas .Program will exit!"(我给高分) 救命呀!关于visualage安装的问题
and connection.close()然后再使用
Statement stmt=conn.createStatement();
String sql = "Select ... From ... Where ...";
ResultSet rs = stmt.executeQuery(sql);
if( !rs.next() )
{
rs.close();
stmt.close();
conn.close();
}
String str... = rs.getString("...");
...
rs.close();
stmt.close();
conn.close();
//在此就不能用rs,stmt,conn等对象了除非你再重新open