0

I'm trying running the code bellow.

DELIMITER $$ 
DROP PROCEDURE IF EXISTS NormalizeMeasures$$
CREATE PROCEDURE NormalizeMeasures()
BEGIN

    -- Variable for Cursor 1
    DECLARE idSensor INT;

END$$ 
DELIMITER ;

But I'm receiving the following message:

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 'CREATE PROCEDURE NormalizeMeasures() BEGIN

-- Variable for Curso' at line 2 

But for strange that this can hear, this code already worked. My Mysql currently version is 5.5.37

John Conde
  • 217,595
  • 99
  • 455
  • 496

1 Answers1

0

I have found the problem.

It was in a space after the first DELIMITER $$

I remove ir and it works. Stupid but works.....