jjzjj

MySQL报错:ERROR 1118 (42000): Row size too large. 或者 Row size too large (> 8126).

今天拿到一个建语句时,大概二百多个字段,然后大部分类型是string的,要求建MySQL的表。首先将string替换为varchar(xx),然后执行了一下语句,报错如下所示:ERROR1118(42000):Rowsizetoolarge.Themaximumrowsizefortheusedtabletype,notcountingBLOBs,is65535.Thisincludesstorageoverhead,checkthemanual.YouhavetochangesomecolumnstoTEXTorBLOBs.报错原因:MySQL建表时有一个单行最大限制长度限定:一张表中所有字
12