码上敲享录 > sql增删改查之常见报错异常解答 > 保错nested exception is java.sql.DataTruncation: Data truncation

保错nested exception is java.sql.DataTruncation: Data truncation

上一章章节目录下一章 2018-05-08已有4926人阅读 评论(0)

sql保存信息:

org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [xxx]; Data truncation; nested exception is java.sql.DataTruncation: Data truncation


解决方法:

保存的数据长度过长,加大数据库中字段的长度即可。


本文地址:http://yayihouse.com/yayishuwu/chapter/1237

向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交