Maximum Number of columns in MySQL table [duplicate]

风流意气都作罢 提交于 2019-12-04 19:27:33

问题


I'm fairly new to MySQL. I have a few questions:

1) How many (maximum) no. of columns can be created in a MySQL Table.

2) How many (maximum) no. of tables can be created in a MySQL database.


回答1:


  • 1- Approximately 4,096 columns per table.

  • 2-mySQL has no limit on the number of databases. The underlying file system may have a limit on the number of tables. Individual storage engines may impose engine-specific constraints. InnoDB permits up to 4 billion tables.




回答2:


You can find precise information here :

  • Maximum no. of columns
  • Maximum no. of tables

In a nutshell:

  • 4096 columns per table, 1017 with InnoDB
  • No limit on the number of tables, 4 billion with InnoDB


来源:https://stackoverflow.com/questions/15410604/maximum-number-of-columns-in-mysql-table

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!