Possible Duplicate:
Mysql - How to quit/exit from stored procedure
Is there something equivelant to php's, c++, c, java, whatever return statement?
can i do something like
IF @numRows >= 1 THEN
RETURN
END IF;
in mysql stored procedures???
Possible Duplicate:
Mysql - How to quit/exit from stored procedure
Is there something equivelant to php's, c++, c, java, whatever return statement?
can i do something like
IF @numRows >= 1 THEN
RETURN
END IF;
in mysql stored procedures???
Try this
Sp:BEGIN
IF @numRows >= 1 THEN
LEAVE Sp;
END IF;
END$$