Re: Problems using LOOP..END LOOP, label and LEAVE
I had a discussion (argument) with the moderator of the MySQL document on the subject.
In the docs it make it look like the LABEL statement is optional but in reality you can't use LEAVE without it therefore you can only write infinite loops if you don't use a label.
You can use LEAVE outside of a loop, in the main body of the code. But you need to give the block of code a name.
Andrew Gilfrin
------------------
http://gilfster.blogspot.com
My MySQL related Blog
http://www.mysqldevelopment.com
MySQL Stored Procedure,Trigger, View.... (Just about most things these days) Information
Subject
Views
Written By
Posted
5318
June 29, 2005 06:25AM
2399
June 29, 2005 07:26AM
2487
June 30, 2005 12:38AM
Re: Problems using LOOP..END LOOP, label and LEAVE
2413
June 30, 2005 04:57AM
2295
June 30, 2005 05:41AM
2340
July 01, 2005 04:17AM
2316
July 01, 2005 05:23AM
2293
July 01, 2005 06:04AM
2888
July 01, 2005 06:29AM
2370
July 01, 2005 07:11AM
4587
July 01, 2005 04:39PM
2441
July 17, 2005 01:24AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.