![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
文章平均质量分 53
枣树下的石磙
这个作者很懒,什么都没留下…
展开
-
mysql对应的JDBC类型
MySQL Type Name Return value ofGetColumnTypeName Return value ofGetColumnClassName BIT(1) BIT java.lang.Boolean BIT( > 1) BIT byte[] TINYINT TINYINT java.lang.Booleanif the configuration propertytinyInt1isBitis set to...原创 2021-01-08 20:39:14 · 594 阅读 · 0 评论 -
[jdbc] mysql 数据类型判断以及写入
private void psSetValue(int index, PreparedStatement ps, Integer type, String typeName, Object value) throws SQLException, UnsupportedEncodingException { if(value==null){ ps.setObject(index,null); return; } .原创 2020-12-31 15:27:09 · 213 阅读 · 2 评论 -
mysql数据类型编码对应关系
PreparedStatement preparedStatement = conn.prepareStatement("select * from example_data_type where 1=2");ResultSet resultSet = preparedStatement.executeQuery();ResultSetMetaData metaData = resultSet.getMetaData();int columnCount = metaData.getColumn...原创 2020-12-28 19:29:27 · 428 阅读 · 0 评论