文章链接:修改字段:https://blog.csdn.net/xiejunna/article/details/78580682
错误分析:https://blog.csdn.net/qq_42142258/article/details/82782237
修改字段长度类型:https://www.cnblogs.com/freeweb/p/5210762.html
向mysql 插入数据并能显示一条数据再报错:pymysql.err.DataError: (1406, "Data too long for column ‘name‘ at row 1")
原因:
字段的长度不够存放数据
解决方案:
就是更改mysql中name 字段的max_length 的长度
修改字段长度命令:
alter table 表名 modify column 列名 类型(要修改的长度);
alter table bank_branch_number modify column bankId varchar(10);
转自:https://www.cnblogs.com/thoughtful-actors/p/10477097.html 感谢!
mysql修改字段长度及pymysql.err.DataError: (1406, "Data too long for column 'name' at row 1")错误
原文地址:https://www.cnblogs.com/aidenzdly/p/12341084.html
时间: 2024-11-08 05:39:59