小编典典

MariaDB中表联接的最大数量是多少?

sql

MySQL或其他情况一样,MariaDB 10中的表连接数是否限制为61 ?

(我无法在MariaDB文档中或通过谷歌搜索找到答案)。


阅读 258

收藏
2021-04-22

共1个答案

小编典典

MariaDB在一个联接中具有61个表的最大相同数目。

这个查询

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;

产量ERROR 1116 (HY000): Too many tables; MariaDB can only use 61 tables in a join

2021-04-22