15 lines
246 B
MySQL
15 lines
246 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `vn2008`.`nz`(dblCANTIDAD DOUBLE)
|
||
|
RETURNS double
|
||
|
DETERMINISTIC
|
||
|
BEGIN
|
||
|
|
||
|
DECLARE dblRESULT DOUBLE;
|
||
|
|
||
|
SET dblRESULT = IFNULL(dblCANTIDAD,0);
|
||
|
|
||
|
RETURN dblRESULT;
|
||
|
|
||
|
END$$
|
||
|
DELIMITER ;
|