【MySql】ERROR 1118 (42000): Row size too large. The maximum row size for the used table type

编程入门 行业动态 更新时间:2024-10-22 09:41:55

【MySql】ERROR 1118 (42000): <a href=https://www.elefans.com/category/jswz/34/1761602.html style=Row size too large. The maximum row size for the used table type"/>

【MySql】ERROR 1118 (42000): Row size too large. The maximum row size for the used table type

在设置utf8前,是正常的,设置完后就报错,原因为 uft8占位问题。

 

MySQL创建一个包含很多字段的表报错:

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

MySQL对于每行存放数据的字节数总和是有限制的,最大字节数为65535,即64k。而这个限制条件,是不包含类型为text和blob的。如果存放的时utf数据,那么64k大概可以存放21845个 utf8字符。

对于大文本字段或大字节字段建议使用text和blob,为了提高查询效率,大文本/大字节字段需要单独出一个子表存放。

更多推荐

【MySql】ERROR 1118 (42000): Row size too large. The maximum row size for the used

本文发布于:2024-02-14 01:02:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1761251.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Row   MySql   ERROR   size   table

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!