📄 testdriverinfo.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 + -