摘要: Statement statement = connection.createStatement(); final ResultSet resultSet = statement.executeQuery(String sql); 上面两句是普通的查询过程,下面分析下驱动程序是如何进行查询和数据返回 阅读全文
posted @ 2016-01-28 16:24 无心流泪 阅读(1430) 评论(0) 推荐(0) 编辑
摘要: 一般获取数据库连接的程序 Class.forName("com.mysql.jdbc.Driver"); final Connection connection = (Connection)DriverManager.getConnection("jdbc:mysql://localhost:330 阅读全文
posted @ 2016-01-28 14:42 无心流泪 阅读(3016) 评论(0) 推荐(0) 编辑