<tfoot id='fL82u'></tfoot>

    <legend id='fL82u'><style id='fL82u'><dir id='fL82u'><q id='fL82u'></q></dir></style></legend>
    • <bdo id='fL82u'></bdo><ul id='fL82u'></ul>
    1. <small id='fL82u'></small><noframes id='fL82u'>

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

        这个存储过程有什么问题?

        What is wrong with this stored procedure?(这个存储过程有什么问题?)
            1. <legend id='u1kzL'><style id='u1kzL'><dir id='u1kzL'><q id='u1kzL'></q></dir></style></legend>
                <tbody id='u1kzL'></tbody>

                <bdo id='u1kzL'></bdo><ul id='u1kzL'></ul>

                  <tfoot id='u1kzL'></tfoot>

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

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

                • 本文介绍了这个存储过程有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我不断收到以下 MySQL SP 的错误有什么想法吗?

                  I keep getting this error for the below MySQL SP any ideas?

                  CREATE PROCEDURE productpricing(
                  OUT pl DECIMAL(8,2), OUT phDECIMAL(8,2), OUT pa DECIMAL(8,2) )BEGIN SELECT Min(amount) INTO pl从卡错误代码:1064 你有一个SQL 语法错误;检查与您的 MySQL 相对应的手册正确语法的服务器版本在第 9 行 '' 附近使用 0.000 秒

                  CREATE PROCEDURE productpricing(
                  OUT pl DECIMAL(8,2), OUT ph DECIMAL(8,2), OUT pa DECIMAL(8,2) ) BEGIN SELECT Min(amount) INTO pl FROM Card Error Code: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9 0.000 sec

                  DROP PROCEDURE IF EXISTS productpricing;
                  CREATE PROCEDURE productpricing(
                     OUT pl DECIMAL(8,2),
                     OUT ph DECIMAL(8,2),
                     OUT pa DECIMAL(8,2)
                  )
                  BEGIN
                     SELECT Min(amount)
                     INTO pl
                     FROM Card;
                  END;
                  

                  推荐答案

                  您是否定义了分隔符?

                  尝试在 CREATE PROCEDURE 语句之前添加 delimiter//.同时将 END; 替换为 END;//.我检查过,它对我有用.

                  Try adding delimiter // before the CREATE PROCEDURE statement. Also replace END; with END;//. I checked and it works for me.

                  请参阅有关存储过程的 MySQL 文档

                  这篇关于这个存储过程有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Accessing another user#39;s table within an Oracle Stored Procedure(在 Oracle 存储过程中访问另一个用户的表)
                  How to View Oracle Stored Procedure using SQLPlus?(如何使用 SQLPlus 查看 Oracle 存储过程?)
                  How to Pass Java List of Objects to Oracle Stored Procedure Using MyBatis?(如何使用 MyBatis 将 Java 对象列表传递给 Oracle 存储过程?)
                  Set the variable result, from query(设置变量结果,来自查询)
                  What is dynamic SQL?(什么是动态 SQL?)
                  Mysql - How to quit/exit from stored procedure(Mysql - 如何退出/退出存储过程)
                    <tfoot id='UaPqX'></tfoot>

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

                        <bdo id='UaPqX'></bdo><ul id='UaPqX'></ul>

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

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