mysql delimiter error

后端 未结 8 1649
别那么骄傲
别那么骄傲 2020-12-06 16:53

Modifed.

DROP FUNCTION IF EXISTS PersonName;
DELIMITER |;

CREATE FUNCTION PersonName( personID SMALLINT )
RETURNS CHAR(20)
BEGIN
  DECLARE pname CHAR         


        
8条回答
  •  情歌与酒
    2020-12-06 17:24

    Best solution is, which I tried after getting the above error. The code should be like

    Delimiter //
    Create function or procedure
    Write your function or procedure here...
    End (without semicolon)
    //
    Delimiter ; (semicolon with space)
    

提交回复
热议问题