首页 > 技术文章 > ERROR 1104 (42000): The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay

klarck 2021-09-10 11:05 原文

最近做个大表查询报错如下:ERROR 1104 (42000): The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
大表280万行。提示描述的很清楚。
我查询show variables like '%MAX_JOIN_SIZE%',是100万。
按照提示修改后,可以查询。

推荐阅读