一、报错信息
### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column 'type' at row 18 ### The error may exist in file [C:\Users\Administrator\Desktop\DingTalk_yield_push\rdps\rdps-report\target\classes\mapper\report\StubfileMapper.xml] ### The error may involve com.rdps.report.mapper.StubfileMapper.batchInsert-Inline ### The error occurred while setting parameters
二、原因分析
从日志可以看到关键字:Data too long for column ‘source_table’,意思就是插入的数据超出了建表时的最大长度,使用 navicat 打开表设计,修改表中字段最大长度时又发现报错为: