您的位置:首页 > 其它

Row size too large. The maximum row size for the used table type 解决

2018-03-19 11:32 627 查看
[SQL] ALTER table loan_report_main add def_rate VARCHAR(50) NULL COMMENT '违约概率';
[Err] 1118 - Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs


最近在给表新增字段时,发生上面错误,原因是超过表的字段长度了,

把上面语句改一下,改小了长度可以解决,网上还有的说是改成text类型或者BLOBs类型可以解决,不过亲测不行,

ALTER table loan_report_main add def_rate VARCHAR(10) NULL COMMENT '违约概率';


我觉得最大问题是还是合理建表,不要建太多字段,或者字段类型设置太长了,像这样设置了字段长度会导致最后超出表长度,新增不了新字段

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐