MySQL 5 stored procedures: returning prematurely

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I would like to know whether it is possible to return prematurely from the
body of a MySQL 5 procedure. It seems MySQL 5 only allows the RETURN keyword
in PROCEDURES, so I end up having to solve this problem by using a whole
bunch of nested IF statements. Is there a better way?



Site Timeline