`
yiyun_8
  • 浏览: 2160 次
  • 来自: ...
社区版块
存档分类
最新评论
文章列表
/**   * 可滚动结果集滚动测试   */   public static void testScrollResultSet() {   Connection conn = DBToolkit.getConnection();   String sql = "SELECT * FROM book";   try {   Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);   ResultSet rs = stm ...
/**   * 可滚动结果集滚动测试   */   public static void testScrollResultSet() {   Connection conn = DBToolkit.getConnection();   String sql = "SELECT * FROM book";   try {   Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);   ResultSet rs = stm ...
产生Statement对象最复杂的方法就是下面这个方法了:   二、详解构建Statement对象的方法参数   此方法来自于Connection接口:   Statement createStatement(int resultSetType,   int resultSetConcurrency,   int resultSetHoldability)   throws SQLException创建一个 Statement 对象,该对象将生成具有给定类型、并发性和可保存性的 ResultSet 对象。此方法与上述 createStatement 方法相同,但它允许重写默认结果集类 ...
Global site tag (gtag.js) - Google Analytics