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

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

要插入的数据超出了数据库中的数据能存储的长度.所以才会有这种错误,

可以给该字段换一种数据类型.使用bigint.

posted @ 2019-08-16 18:35  King-DA  阅读(5210)  评论(0编辑  收藏  举报