Blob 类型 java的类型
时间: 2023-10-17 09:56:05 浏览: 109
Blob 类型在Java中对应的类型是java.sql.Blob。\[1\]在上述代码中,通过PreparedStatement的setBlob方法将图片文件插入到数据库的Blob类型字段中。\[2\]在MySQL中,Blob类型有四种,分别是TinyBlob、Blob、MediumBlob和LongBlob,它们的最大存储容量分别为255字节、65k字节、16M字节和4G字节。\[2\]在连接数据库时,可以使用JDBC的URL来指定数据库的连接信息,如上述代码中的URL字符串。\[3\]
#### 引用[.reference_title]
- *1* *2* [JAVA【操作BLOB类型字段】【批量操作】](https://blog.csdn.net/weixin_62684026/article/details/126220934)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [java String类型转换为Blob类型](https://blog.csdn.net/weixin_33605464/article/details/114052811)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文