数据库
首页 > 数据库> > [Bug日记0004]IDEA中操作数据库插入数据报错异常(博客项目插入评论):Out of range value for column 'article_id' at row

[Bug日记0004]IDEA中操作数据库插入数据报错异常(博客项目插入评论):Out of range value for column 'article_id' at row

作者:互联网

IDEA中操作数据库插入数据报错异常(博客项目插入评论)

bug1

问题

Caused by: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'article_id' at row 1

原因

字面意思是插入的数据值超过article_id列的范围

解决方案

查看对应的数据库字段类型并修正
article_id字段将int修改为bigint

参考方案

标签:0004,数据库,IDEA,插入,报错,article,id
来源: https://www.cnblogs.com/CodedogWorld/p/16155349.html