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

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

        时间:2023-10-26
            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 文档

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

                  上一篇:如何将值动态传递给 IN 运算符? 下一篇:更新变量的MYSQL存储过程为0

                  相关文章

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