salix/db/routines/vn/functions/getInventoryDate.sql

9 lines
200 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` FUNCTION `vn`.`getInventoryDate`()
RETURNS date
DETERMINISTIC
BEGIN
RETURN (SELECT inventoried FROM config LIMIT 1);
END$$
DELIMITER ;