Here is my Database server information
Server type: MySQL Server version: 5.7.16 - MySQL Community Server (GPL) Protocol version: 10
I run below code and got a error messate
CREATE PROCEDURE dowhile()
BEGIN
DECLARE v1 INT DEFAULT 5;
WHILE v1 > 0 DO
SET v1 = v1 - 1;
END WHILE;
END;
I got an error messate: #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 '' at line 3