81,094
社区成员
发帖
与我相关
我的任务
分享
//关闭
public void close (){
try{
if(rs!=null){
rs.close();
rs=null;
}
if(stmt!=null){
stmt.close();
stmt=null;
}
if(con!=null){
con.close();
con=null;
}
}catch(Exception e){
System.out.println("关闭数据库出现异常:"+e);
}
}