mysql function variable

Solutions on MaxInterview for mysql function variable by the best coders in the world

showing results for - "mysql function variable"
Perrine
15 Sep 2017
1CREATE PROCEDURE p(increment INT)
2BEGIN
3  DECLARE counter INT DEFAULT 0;
4  WHILE counter < 10 DO
5    -- ... do work ...
6    SET counter = counter + increment;
7  END WHILE;
8END;