Got wrong column type tinyint and bit

Viewed 30

In MySQL, the column is tinyint(1), but I got bit in JDBC when using this code:

ResultSet rs=statement.executeQuery(singleSql);
int columnType=rs.getMetaData().getColumnType(1);
0 Answers
Related