📄 printcolumntypes.java
字号:
import java.sql.*;public class PrintColumnTypes { public static void printColTypes(ResultSetMetaData rsmd) throws SQLException { int columns = rsmd.getColumnCount(); for (int i = 1; i <= columns; i++) { int jdbcType = rsmd.getColumnType(i); String name = rsmd.getColumnTypeName(i); System.out.print("Column " + i + " is JDBC type " + jdbcType); System.out.println(", which the DBMS calls " + name); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -