I have very simple question but i did\'t get any simple code to exit from SP using Mysql. Can anyone share with me how to do that?
CREATE PROCEDURE SP_Report
MainLabel:BEGIN IF () IS NOT NULL THEN LEAVE MainLabel; END IF; ....code i.e. IF (@skipMe) IS NOT NULL THEN /* @skipMe returns Null if never set or set to NULL */ LEAVE MainLabel; END IF;