2013年7月18日

[JDBC]你真的会正确关闭connection吗?

摘要: Connection conn = null; PreparedStatement stmt = null; ResultSet rs = null; try { conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1/test","root","fendou"); stmt = conn.prepareStatement("select 1 from dual"); rs = stmt.executeQuery(); while(rs.next()){ 阅读全文

posted @ 2013-07-18 01:04 LoveEyes 阅读(9871) 评论(2) 推荐(1) 编辑

导航