Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

while mysql

CREATE PROCEDURE dowhile()
BEGIN
  DECLARE v1 INT DEFAULT 5;

  WHILE v1 > 0 DO
    ...
    SET v1 = v1 - 1;
  END WHILE;
END;
Source by dev.mysql.com #
 
PREVIOUS NEXT
Tagged: #mysql
ADD COMMENT
Topic
Name
9+4 =