What is wrong with this stored procedure?

前端 未结 2 1640
太阳男子
太阳男子 2020-12-12 08:05

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

CREATE PROCEDURE productpricing(
OUT pl DECIMAL(8,2), OUT ph DECIMAL(8,2),

相关标签:
2条回答
  • 2020-12-12 08:21

    Did you define a delimiter?

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

    See the MySQL doc on stored procedures

    0 讨论(0)
  • 2020-12-12 08:26

    you need group by if you use min,max i think. if that doesnt work try #p1 to create a temp table. May be problem is the table you are inserting it to.

    0 讨论(0)
提交回复
热议问题