CREATE PROCEDURE dorepeat(IN p1 INT)
BEGIN
DECLARE x INT DEFAULT 0;
REPEAT SET x = x + 1; UNTIL x > p1 END REPEAT;
END
Run Code Online (Sandbox Code Playgroud)
我收到语法错误:
#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
但对我来说,一切似乎都是正确的.我真的没有任何线索!任何人都可以帮忙吗?
谢谢