---
title: "jdbc知识"
author: "hbkh2000"
date: "2011-07-16T15:18:39Z"
tags: []
categories: ["数据库"]
slug: "jdbc"
draft: false
lastmod: "2011-07-16T15:18:39Z"
id: 1125859
url: "https://hbkh2000.iteye.com/blog/1125859"
---

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){        }  
}