MySQL 表中的最大列数
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15410604/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Maximum Number of columns in MySQL table
提问by Kanchan
I'm fairly new to MySQL. I have a few questions:
我对 MySQL 相当陌生。我有几个问题:
1) How many (maximum) no. of columns can be created in a MySQL Table.
1)多少(最大)没有。可以在 MySQL 表中创建列数。
2) How many (maximum) no. of tables can be created in a MySQL database.
2)多少(最大)没有。可以在 MySQL 数据库中创建表。
回答by echo_Me
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.
1- 每个表大约 4,096 列。
2-mySQL对数据库数量没有限制。底层文件系统可能对表的数量有限制。单个存储引擎可能会施加特定于引擎的约束。InnoDB 允许多达 40 亿个表。
回答by rap-2-h
You can find precise information here :
你可以在这里找到准确的信息:
In a nutshell:
简而言之:
- 4096 columns per table, 1017 with InnoDB
- No limit on the number of tables, 4 billion with InnoDB
- 每个表 4096 列,InnoDB 为 1017
- 表数没有限制,InnoDB 40亿