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
5298
June 29, 2005 06:25AM
2384
June 29, 2005 07:26AM
2470
June 30, 2005 12:38AM
Re: Problems using LOOP..END LOOP, label and LEAVE
2401
June 30, 2005 04:57AM
2282
June 30, 2005 05:41AM
2333
July 01, 2005 04:17AM
2303
July 01, 2005 05:23AM
2280
July 01, 2005 06:04AM
2873
July 01, 2005 06:29AM
2347
July 01, 2005 07:11AM
4571
July 01, 2005 04:39PM
2427
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.