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

    1. <small id='1wN0Z'></small><noframes id='1wN0Z'>

    2. <legend id='1wN0Z'><style id='1wN0Z'><dir id='1wN0Z'><q id='1wN0Z'></q></dir></style></legend>
        <bdo id='1wN0Z'></bdo><ul id='1wN0Z'></ul>
    3. <tfoot id='1wN0Z'></tfoot>

        MySQL 错误:UPDATE 和 LIMIT 的错误使用

        时间:2023-06-25
        • <tfoot id='pqjgE'></tfoot>

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

            <small id='pqjgE'></small><noframes id='pqjgE'>

              <tbody id='pqjgE'></tbody>

                • 本文介绍了MySQL 错误:UPDATE 和 LIMIT 的错误使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何更正此问题,以便我的 MySQL 代码正常工作.

                  How can I correct this problem so that my MySQL code works correctly.

                  这是给我带来问题的 MySQL 代码.

                  Here is my MySQL code that gives me the problem.

                  $q = "UPDATE users INNER JOIN contact_info ON contact_info.user_id = users.user_id SET active.users = NULL WHERE (email.contact_info = '" . mysqli_real_escape_string($mysqli, $x) . "' AND active.users = '" . mysqli_real_escape_string($mysqli, $y) . "') LIMIT 1";
                  $r = mysqli_query ($mysqli, $q) or trigger_error("Query: $q\n<br />MySQL Error: " . mysqli_error($mysqli));
                  

                  推荐答案

                  根据 更新:

                  对于多表语法,UPDATE 更新 table_references 中命名的每个表中满足条件的行.在这种情况下,不能使用 ORDER BY 和 LIMIT.

                  For the multiple-table syntax, UPDATE updates rows in each table named in table_references that satisfy the conditions. In this case, ORDER BY and LIMIT cannot be used.

                  这篇关于MySQL 错误:UPDATE 和 LIMIT 的错误使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 MySQL 判断今天是否是用户的生日 下一篇:在 mysql 表名中使用 (-) 破折号

                  相关文章

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

                      <tfoot id='JQERr'></tfoot>
                    1. <small id='JQERr'></small><noframes id='JQERr'>

                    2. <legend id='JQERr'><style id='JQERr'><dir id='JQERr'><q id='JQERr'></q></dir></style></legend>