部分异常信息如下:
java.sql.SQLException: "pos" + "length" arguments can not be larger than the BLOB's length
解决方法:
在数据库连接URL中加上:emulateLocators=true
例如:jdbc:mysql://localhost:3306/dbname?emulateLocators=true
java.sql.SQLException: "pos" + "length" arguments can not be larger than the BLOB's length
解决方法:
在数据库连接URL中加上:emulateLocators=true
例如:jdbc:mysql://localhost:3306/dbname?emulateLocators=true
本文介绍了如何解决在使用MySQL数据库时遇到的BLOB长度异常问题。通过在数据库连接URL中添加参数emulateLocators=true可以有效避免由于定位符导致的数据读取错误。
242

被折叠的 条评论
为什么被折叠?



