Mysql syntax error creating stored procedure

前端 未结 1 1152
一个人的身影
一个人的身影 2020-12-12 02:52

This is driving me nuts.

 CREATE DEFINER=`root`@`localhost` PROCEDURE `CalcularCRTarea` (Id_Tarea INT, OUT crTarea decimal(12, 4))
    DETERMINISTIC
BEGIN
           


        
相关标签:
1条回答
  • 2020-12-12 03:22

    You are missing custom delimiter instruction.

    As you missed it, engine tried to compile the statements when it found the first default statement terminator, the semicolon ;. And hence the exception.

    Place your entire routine in between:

    -- define the delimiter
    delimiter //
    
    
    --- place here your stored procedure
    
    -- and lastly following line
    //
    
    -- reset the delimiter
    delimiter ;
    
    0 讨论(0)
提交回复
热议问题