Syntax:
[begin_label:] REPEAT
    statement_list
UNTIL search_condition
END REPEAT [end_label]

The statement list within a REPEAT statement is repeated until the
search_condition is true. Thus, a REPEAT always enters the loop at
least once. statement_list consists of one or more statements, each
terminated by a semicolon (;) statement delimiter.

A REPEAT statement can be labeled. See [HELP BEGIN END] for the rules
regarding label use.

URL: http://dev.mysql.com/doc/refman/5.1/en/repeat-statement.html

