【问题标题】:MysqlDataTruncation: Data truncation: Out of range value for column 'agentID' at row 4MysqlDataTruncation:数据截断:第 4 行列“agentID”的值超出范围
【发布时间】:2014-10-30 13:50:59
【问题描述】:

在存储过程中,我使用临时表 agentID int(11) 并在 agentID 字段 9999999999 中插入此值,正在使用服务器版本:5.5.29 MySQL Community Server (GPL)。现在我在 MySQL 5.6 上进行了迁移,这不起作用它在这里显示了问题(数据截断:第 4 行的列 'agentID' 的值超出范围)。请任何人向我解释 MySQL 服务器行为不同的原因,这应该很重要。

【问题讨论】:

标签: mysql database stored-procedures


【解决方案1】:

MySql 5.6 支持 Integer upto: 2147483647

【讨论】:

  • nwzhaider 也请添加以上来源的链接。
猜你喜欢
  • 2011-12-31
  • 2015-05-28
  • 1970-01-01
  • 2016-10-21
  • 1970-01-01
  • 2021-05-06
  • 2023-01-06
  • 2016-09-24
  • 2013-10-07
相关资源
最近更新 更多