Last active
January 7, 2022 03:43
-
-
Save NorikDavtian/e7e5231f31b2a99825220b2703d86e7c to your computer and use it in GitHub Desktop.
This file contains 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
DELIMITER $$ | |
CREATE PROCEDURE LOADGEN(SIZE INT) | |
DETERMINISTIC | |
READS SQL DATA | |
BEGIN | |
DECLARE i INT unsigned DEFAULT 1; | |
WHILE (i <= SIZE) | |
DO | |
INSERT INTO ping(name) VALUES ('ping'); | |
INSERT INTO ping(name) VALUES ('pong'); | |
SET i = i + 1; | |
END WHILE; | |
END $$ | |
DELIMITER ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CALL LOADGEN(10);