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

        <tfoot id='CKnw8'></tfoot>
      1. <legend id='CKnw8'><style id='CKnw8'><dir id='CKnw8'><q id='CKnw8'></q></dir></style></legend>
      2. MySQL 错误 #2014 - 命令不同步;你现在不能运行这个命令

        时间:2023-10-26
        <tfoot id='xIZ9D'></tfoot>
        1. <i id='xIZ9D'><tr id='xIZ9D'><dt id='xIZ9D'><q id='xIZ9D'><span id='xIZ9D'><b id='xIZ9D'><form id='xIZ9D'><ins id='xIZ9D'></ins><ul id='xIZ9D'></ul><sub id='xIZ9D'></sub></form><legend id='xIZ9D'></legend><bdo id='xIZ9D'><pre id='xIZ9D'><center id='xIZ9D'></center></pre></bdo></b><th id='xIZ9D'></th></span></q></dt></tr></i><div id='xIZ9D'><tfoot id='xIZ9D'></tfoot><dl id='xIZ9D'><fieldset id='xIZ9D'></fieldset></dl></div>
        2. <legend id='xIZ9D'><style id='xIZ9D'><dir id='xIZ9D'><q id='xIZ9D'></q></dir></style></legend>

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

                  <tbody id='xIZ9D'></tbody>

                  <bdo id='xIZ9D'></bdo><ul id='xIZ9D'></ul>
                  本文介绍了MySQL 错误 #2014 - 命令不同步;你现在不能运行这个命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 MySQL,我正在定义一个这样的存储过程:

                  I am using MySQL and I am defining a stored procedure like this:

                  delimiter ;;
                  Create procedure sp_test()
                  
                    select * from name_table;
                  end
                  

                  当我尝试执行该过程时出现此错误:

                  When I try to execute that procedure I get this error:

                  #2014 - Commands out of sync; you can't run this command now 
                  

                  这是什么意思,我做错了什么?

                  What does this mean and what am I doing wrong?

                  推荐答案

                  来自 手册

                  C.5.2.14.命令不同步
                  如果 命令不同步;你现在无法在您的客户端代码中运行此命令,您正在调用客户端功能顺序错误.

                  C.5.2.14. Commands out of sync
                  If you get Commands out of sync; you can't run this command now in your client code, you are calling client functions in the wrong order.

                  这可能发生,例如,如果您使用 mysql_use_result() 并且尝试在调用 mysql_free_result() 之前执行新查询.如果您尝试执行两个返回数据的查询,也会发生这种情况无需调用 mysql_use_result()mysql_store_result() .

                  This can happen, for example, if you are using mysql_use_result() and try to execute a new query before you have called mysql_free_result(). It can also happen if you try to execute two queries that return data without calling mysql_use_result() or mysql_store_result() in between.

                  这篇文章(取自这里)

                  我已经解决了这个问题.我使用 MySQL-Fron 代替 MySQL Query浏览器.一切正常.

                  I've solved that problem. I use MySQL-Fron instead MySQL Query browser. And everything works fine.

                  让我认为这不是服务器或数据库问题,而是您使用的工具的问题.

                  makes me think that it's not a server or database problem but a problem in the tool you're using.

                  这篇关于MySQL 错误 #2014 - 命令不同步;你现在不能运行这个命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:从java调用带有表值参数的存储过程 下一篇:MySQL 存储过程不适用于 SELECT(基本问题)

                  相关文章

                • <tfoot id='vgW9b'></tfoot>
                    <bdo id='vgW9b'></bdo><ul id='vgW9b'></ul>

                  <legend id='vgW9b'><style id='vgW9b'><dir id='vgW9b'><q id='vgW9b'></q></dir></style></legend>

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

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