* @throws SQLException
*/
private void getColumns(ResultSet rs, Table t) throws SQLException {
while (rs.next()) {
// 这里没有提供获取当前列是否主键/外键的信息提示
Column col = new Column();
col.setName(rs.getString("COLUMN_NAME"));
col.setType(rs.getString("TYPE_NAME"));
col.setSize(rs.getInt("COLUMN_SIZE"));
col.setNullable(rs.getBoolean("NULLABLE"));
col.setDigits(rs.getInt("DECIMAL_DIGITS"));
col.setDefaultValue(rs.getString("COLUMN_DEF"));
col.setComment(rs.getString("REMARKS"));
t.getColumns().add(col);
}
}