A special case is when the cant 'parameter is NULL, i.e. is the key. I use the trick for this case: I set the parameter to -1:
CREATE PROCEDURE procCreate (IN id_cosa INT(11)) BEGIN IF id_cosa != -1 THEN ~~(your code here)~~ END IF END
Antonio Feb 22 '14 at 2:02 on 2014-02-22 14:02
source share