Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum Number of columns in MySQL table [duplicate]

Tags:

mysql

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.

like image 718
Kanchan Avatar asked Mar 14 '13 13:03

Kanchan


2 Answers

  • 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.

like image 127
echo_Me Avatar answered Oct 11 '22 20:10

echo_Me


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
like image 40
rap-2-h Avatar answered Oct 11 '22 21:10

rap-2-h