• <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 行";

        MySQL: quot;The SELECT would examine more than MAX_JOIN_SIZE rowsquot;(MySQL:“SELECT 将检查超过 MAX_JOIN_SIZE 行;)

        <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 行";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Building a comma separated list?(建立一个逗号分隔的列表?)
                  Errors in SQL Server while importing CSV file despite varchar(MAX) being used for each column(尽管每列都使用了 varchar(MAX),但在导入 CSV 文件时 SQL Server 中出现错误)
                  How can I import an Excel file into SQL Server?(如何将 Excel 文件导入 SQL Server?)
                  Export table to file with column headers (column names) using the bcp utility and SQL Server 2008(使用 bcp 实用程序和 SQL Server 2008 将表导出到带有列标题(列名称)的文件)
                  Concat field value to string in SQL Server(将字段值连接到 SQL Server 中的字符串)
                  SQL Server Bulk insert of CSV file with inconsistent quotes(SQL Server 批量插入带有不一致引号的 CSV 文件)
                • <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'>

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