`
hbkh2000
  • 浏览: 197466 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

jdbc知识

 
阅读更多

try
{
        con 
=
        stmt
=
        rs  
=
}
catch (Exception e)
{
}
finally

      
try
      {      
       
if(rs != null)
        {
           rs.close();
           rs
=null;

        }
       
if(stat != null)
        {
           stat.close();
           stat
=null;

        }
       
if(conn != null)
        {
           conn.close();
           conn
=null;

        }
       }
catch(Exception ignor){        }
}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics