当mysql服务器表包含超过120列时会出现什么问题?
答案 0 :(得分:1)
答案 1 :(得分:0)
这是一种不好的做法,使表中的120列更好地分成多个表。
由于MYSQL以关系数据库而闻名,因此建立基于关系的表结构。
一旦您的应用程序变得更大,问题列表就会出现。
https://dba.stackexchange.com/questions/3972/too-many-columns-in-mysql
There is a hard limit of 4096 columns per table, but the effective maximum may be less for a given table. The exact limit depends on several interacting factors.
Every table (regardless of storage engine) has a maximum row size of 65,535 bytes. Storage engines may place additional constraints on this limit, reducing the effective maximum row size.
The maximum row size constrains the number (and possibly size) of columns because the total length of all columns cannot exceed this size.
...
Individual storage engines might impose additional restrictions that limit table column count. Examples:
InnoDB permits up to 1000 columns.