我有一个带有字段DECIMAL(9,2)的表,我有两个服务器运行MySQL5.7INSERT INTO `money_accounts` (`balance`) VALUES (9999999999.99);
在其中一个服务器上插入并截断值,而另一个服务器则会引发Out of range value for column balance错误。我的问题是,使这种情况发生的配置值是什么?或者为什么它发生在一个服务器而不是另一个服务器上?
那就是-
由: com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1527):数据截断:数据太长以致于第1行的列“FBZipLoc”在com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1065) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch是否可能自动截断