⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testdriverinfo.java

📁 此程序都是企业级 的数据库开发程序 全面揭示了JAVA对数据库的操作
💻 JAVA
字号:
package results;

import java.sql.*;
import connections.*;

public class TestDriverInfo {
  public static void main(String[] args) {
    Connection conn = null;
    Statement stmt = null;

    try {
      conn = ConnectionFactory.getConnection();
      stmt = conn.createStatement();

      int maxRows = stmt.getMaxRows();
      System.out.println("Maximum rows : " + maxRows);

      int maxFieldSize = stmt.getMaxFieldSize();
      System.out.println("Maximum fieldsize : " + maxFieldSize);

      int queryTimeout = stmt.getQueryTimeout();
      System.out.println("Query timout : " + queryTimeout);
    } catch (Exception e) {
      e.printStackTrace();
    } 
    finally {
      ConnectionFactory.close(stmt);
      ConnectionFactory.close(conn);
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -