2021-04-10
阅读量:
2585
Mysql报错Error Code: 1262. Row 2 was truncated; it contained more data than there were inputcolumns
问:
Mysql报错Error Code: 1262. Row 2 was truncated; it contained more data than there were inputcolumns
答:
这是因为导入的数据字段数与表设置的字符安数不一致,另外,当数据中含有转义字符加空字符或换行符等特殊字符时,可能会因转义问题出现此报错;解决方法是修改mysql的sql_mode为空,语句为:set sql_mode='';






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论