DELIMITER $$ CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `bi`.`nz`(vData DOUBLE) RETURNS double DETERMINISTIC BEGIN /** * Devuelve 0, si el parĂ¡metro es NULL: */ DECLARE vResult DOUBLE; SET vResult = IFNULL(vData,0); RETURN vResult; END$$ DELIMITER ;