[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 '违约概率';
我觉得最大问题是还是合理建表,不要建太多字段,或者字段类型设置太长了,像这样设置了字段长度会导致最后超出表长度,新增不了新字段