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
5775
June 29, 2005 06:25AM
2610
June 29, 2005 07:26AM
2672
June 30, 2005 12:38AM
Re: Problems using LOOP..END LOOP, label and LEAVE
2608
June 30, 2005 04:57AM
2495
June 30, 2005 05:41AM
2520
July 01, 2005 04:17AM
2497
July 01, 2005 05:23AM
2464
July 01, 2005 06:04AM
3103
July 01, 2005 06:29AM
2588
July 01, 2005 07:11AM
4844
July 01, 2005 04:39PM
2641
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.