• <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 的错误使用

        MySQL Error: Incorrect usage of UPDATE and LIMIT(MySQL 错误:UPDATE 和 LIMIT 的错误使用)
        • <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 的错误使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How to delete duplicate records in mysql database?(如何删除mysql数据库中的重复记录?)
                  Python Pandas write to sql with NaN values(Python Pandas 使用 NaN 值写入 sql)
                  MySQL Insert amp; Joins(MySQL 插入 amp;加入)
                  MySQL concat() to create column names to be used in a query?(MySQL concat() 创建要在查询中使用的列名?)
                  NodeJS responded MySQL timezone is different when I fetch directly from MySQL(当我直接从 MySQL 获取时,NodeJS 响应 MySQL 时区不同)
                  WHERE datetime older than some time (eg. 15 minutes)(WHERE 日期时间早于某个时间(例如 15 分钟))

                        <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'>

                              <tbody id='JQERr'></tbody>

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