Is the number of table joins in MariaDB 10 limited to 61 as is the case for MySQL or another number?
(I couldn't find the answer in the MariaDB documentation or by googling).
MySQL has no limit on the number of tables. The underlying file system may have a limit on the number of files that represent tables. Individual storage engines may impose engine-specific constraints. InnoDB permits up to 4 billion tables.
MariaDB imposes a row-size limit of 65,535 bytes for the combined sizes of all columns. If the table contains BLOB or TEXT columns, these only count for 9 - 12 bytes in this calculation, given that their content is stored separately. 32-bit operating systems have a maximum file size limit of 2GB.
There are three types of MySQL joins: MySQL INNER JOIN (or sometimes called simple join) MySQL LEFT OUTER JOIN (or sometimes called LEFT JOIN) MySQL RIGHT OUTER JOIN (or sometimes called RIGHT JOIN)
MariaDB does not support FULL JOIN keyword. But, a FULL JOIN on two tables can be achieved by using three keywords: LEFT JOIN, RIGHT JOIN and UNION keywords.
MariaDB has the same maximum number of 61 tables in a join.
This query
CREATE TABLE t (i INT(10) NOT NULL);
select *
from t a01 join t a02 join t a03 join t a04 join t a05 join t a06 join t a07 join t a08 join t a09 join t a10
join t a11 join t a12 join t a13 join t a14 join t a15 join t a16 join t a17 join t a18 join t a19 join t a20
join t a21 join t a22 join t a23 join t a24 join t a25 join t a26 join t a27 join t a28 join t a29 join t a30
join t a31 join t a32 join t a33 join t a34 join t a35 join t a36 join t a37 join t a38 join t a39 join t a40
join t a41 join t a42 join t a43 join t a44 join t a45 join t a46 join t a47 join t a48 join t a49 join t a50
join t a51 join t a52 join t a53 join t a54 join t a55 join t a56 join t a57 join t a58 join t a59 join t a60
join t a61 join t a62;
yields ERROR 1116 (HY000): Too many tables; MariaDB can only use 61 tables in a join
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With