为json中的字段创建索引altertablecustomeraddindexusera((CAST(custom_json->>'$.userId'asCHAR(500))));limitthenumberofindexescreated并报错Rowsizetoolarge。使用的表类型的最大行大小,不包括BLOB,是65535。这包括存储开销,查看手册。您必须将某些列更改为TEXT或BLOB

为json中的字段创建索引altertablecustomeraddindexusera((CAST(custom_json->>'$.userId'asCHAR(500))));limitthenumberofindexescreated并报错Rowsizetoolarge。使用的表类型的最大行大小,不包括BLOB,是65535。这包括存储开销,查看手册。您必须将某些列更改为TEXT或BLOB