Created
July 10, 2020 05:32
-
-
Save mikelemus27/67872b4ecd0ffe9313991f3190a14477 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE PROCEDURE dorepeat(p1 INT) | |
| BEGIN | |
| SET @x = 0; | |
| REPEAT | |
| SET @x = @x + 1; | |
| UNTIL @x > p1 END REPEAT; | |
| END | |
| // | |
| mysql> CALL dorepeat(1000)// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment