日期:2014-05-16  浏览次数:20548 次

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