我如何在 MySql 中创建超过 100 列的 table

How do i create a table in MySql with more than 100 columns

在处理使用 Laravel 5.8 开发的项目时,我想创建一个 table 超过 100 列的数据库(table 迁移)。所以我遇到了这个错误:

Illuminate \ Database \ QueryException: SQLSTATE [42000]: Syntax error or access violation: 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

据我了解,MySql 不能在 table 中包含尽可能多的列。

因此,我的问题是:这个问题有解决方案吗?

而不是使用具有大量列的 table。您可以使用许多 table 并减少列数。您只需要 link table 使用主键和外键