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
5662
June 29, 2005 06:25AM
2567
June 29, 2005 07:26AM
2625
June 30, 2005 12:38AM
Re: Problems using LOOP..END LOOP, label and LEAVE
2562
June 30, 2005 04:57AM
2451
June 30, 2005 05:41AM
2478
July 01, 2005 04:17AM
2458
July 01, 2005 05:23AM
2422
July 01, 2005 06:04AM
3057
July 01, 2005 06:29AM
2539
July 01, 2005 07:11AM
4800
July 01, 2005 04:39PM
2596
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.