statement_listEND WHILE [
The statement list within a
statement is repeated as long as the
search_condition expression is true.
statement_list consists of one or
more SQL statements, each terminated by a semicolon
;) statement delimiter.
CREATE PROCEDURE dowhile() BEGIN DECLARE v1 INT DEFAULT 5; WHILE v1 > 0 DO ... SET v1 = v1 - 1; END WHILE; END;
Copyright © 1997, 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices