What is wrong with this stored procedure?

前端 未结 2 1644
太阳男子
太阳男子 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

提交回复
热议问题