MySQL Forums
Forum List  »  Stored Procedures

Re: stored procedure executing for infinite time
Posted by: Peter Brawley
Date: December 09, 2015 12:31PM

Statements need semicolon termination.

LOOP and LEAVE need label.

label: LOOP
  ...
  if ... then 
    LEAVE label;
  end if;
END LOOP label;

This is what the manual is for :-)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: stored procedure executing for infinite time
762
December 09, 2015 12:31PM


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.