I read about the 61 table join restriction in MySQL 5, but I'm not sure how this applies to the following:
SELECT * FROM ( SELECT * FROM tableA JOIN // Lots of other joins here... UNION SELECT * FROM tableB JOIN // Lots of other joins here... UNION SELECT * FROM tableC JOIN // Lots of other joins here... // etc... )
Would I overcome the limit of just 61 tables in all subqueries, or would it be 61 for a UNIONed subquery?
It depends on different databases, for example. PostgreSQL, MSSQL, Oracle?
source share