报错信息:> 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
官网说法最大值是65535bytes,utf8mb4每个字符占4个bytes,最大值应该为16383.75(如图)但是,如果你一张表中有多个字段都为varchar,是所有varchar字段总和不能超过16383!!!!


本文探讨了MySQL中行尺寸过大的错误1118及其解决方案。解释了最大行尺寸限制为65535字节的原因,并指出UTF8MB4编码下VARCHAR类型字段的最大长度。强调了当表中含有多个VARCHAR字段时,其总长度不应超过特定阈值。
690

被折叠的 条评论
为什么被折叠?



