• <small id='gJEBI'></small><noframes id='gJEBI'>

      <bdo id='gJEBI'></bdo><ul id='gJEBI'></ul>
    <i id='gJEBI'><tr id='gJEBI'><dt id='gJEBI'><q id='gJEBI'><span id='gJEBI'><b id='gJEBI'><form id='gJEBI'><ins id='gJEBI'></ins><ul id='gJEBI'></ul><sub id='gJEBI'></sub></form><legend id='gJEBI'></legend><bdo id='gJEBI'><pre id='gJEBI'><center id='gJEBI'></center></pre></bdo></b><th id='gJEBI'></th></span></q></dt></tr></i><div id='gJEBI'><tfoot id='gJEBI'></tfoot><dl id='gJEBI'><fieldset id='gJEBI'></fieldset></dl></div>

  • <tfoot id='gJEBI'></tfoot>
    <legend id='gJEBI'><style id='gJEBI'><dir id='gJEBI'><q id='gJEBI'></q></dir></style></legend>

        MySQL:“SELECT 将检查超过 MAX_JOIN_SIZE 行";

        时间:2023-10-08

        <tfoot id='pXAvw'></tfoot>
        <legend id='pXAvw'><style id='pXAvw'><dir id='pXAvw'><q id='pXAvw'></q></dir></style></legend>

            <i id='pXAvw'><tr id='pXAvw'><dt id='pXAvw'><q id='pXAvw'><span id='pXAvw'><b id='pXAvw'><form id='pXAvw'><ins id='pXAvw'></ins><ul id='pXAvw'></ul><sub id='pXAvw'></sub></form><legend id='pXAvw'></legend><bdo id='pXAvw'><pre id='pXAvw'><center id='pXAvw'></center></pre></bdo></b><th id='pXAvw'></th></span></q></dt></tr></i><div id='pXAvw'><tfoot id='pXAvw'></tfoot><dl id='pXAvw'><fieldset id='pXAvw'></fieldset></dl></div>
              <bdo id='pXAvw'></bdo><ul id='pXAvw'></ul>

                    <tbody id='pXAvw'></tbody>
                • <small id='pXAvw'></small><noframes id='pXAvw'>

                  本文介绍了MySQL:“SELECT 将检查超过 MAX_JOIN_SIZE 行";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 PHP 和 MySQL.在我的程序中有一个涉及连接的选择查询.当我在本地主机上运行它时它工作正常但是当我将它上传到我的服务器并尝试执行它时它会产生以下错误:

                  SELECT 将检查超过 MAX_JOIN_SIZE 行;检查您的 WHERE 并使用 SET SQL_BIG_SELECTS=1 或 SET SQL_MAX_JOIN_SIZE=# 如果 SELECT 没问题

                  我该如何纠正?

                  解决方案

                  使用 PHP 时,SQL_BIG_SELECTS=1 应该在主查询之前在单独的查询中设置.例如:

                  $mysqli = new mysqli("localhost", "root", "password", "db");$mysqli->query("SET SQL_BIG_SELECTS=1");//在你的主查询之前设置它$results = $mysqli->query("SELECT a, b, c FROM test");while($row = $results->fetch_assoc()){echo '

                  ';print_r ($row);echo '</pre>';}

                  I am using PHP and MySQL. In my program there is a select query involving joins. When I run it on localhost it's working fine but when I upload it on my server and try to execute it then it generates the following error:

                  The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay

                  How can I correct this?

                  解决方案

                  When using PHP, SQL_BIG_SELECTS=1 should be set in a separate query before your main query. For example:

                  $mysqli = new mysqli("localhost", "root", "password", "db"); 
                  
                  $mysqli->query("SET SQL_BIG_SELECTS=1");  //Set it before your main query
                  
                  $results = $mysqli->query("SELECT a, b, c FROM test");
                  while($row = $results->fetch_assoc()){
                      echo '<pre>';
                      print_r ($row);
                      echo '</pre>';
                  }
                  

                  这篇关于MySQL:“SELECT 将检查超过 MAX_JOIN_SIZE 行";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:跨多个表的 mySQL MATCH 下一篇:连接两个表(具有 1-M 关系),其中第二个表需要“展平"为一行

                  相关文章

                • <legend id='aTR77'><style id='aTR77'><dir id='aTR77'><q id='aTR77'></q></dir></style></legend>
                  <i id='aTR77'><tr id='aTR77'><dt id='aTR77'><q id='aTR77'><span id='aTR77'><b id='aTR77'><form id='aTR77'><ins id='aTR77'></ins><ul id='aTR77'></ul><sub id='aTR77'></sub></form><legend id='aTR77'></legend><bdo id='aTR77'><pre id='aTR77'><center id='aTR77'></center></pre></bdo></b><th id='aTR77'></th></span></q></dt></tr></i><div id='aTR77'><tfoot id='aTR77'></tfoot><dl id='aTR77'><fieldset id='aTR77'></fieldset></dl></div>

                    <bdo id='aTR77'></bdo><ul id='aTR77'></ul>
                • <small id='aTR77'></small><noframes id='aTR77'>

                    <tfoot id='aTR77'></tfoot>