salix/db/routines/vn2008/procedures/proc_end.sql

12 lines
230 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn2008`.`proc_end`()
BEGIN
UPDATE stat SET `end` = util.VN_NOW()
WHERE id = (SELECT id FROM lastid);
DROP TEMPORARY TABLE IF EXISTS lastid;
END$$
DELIMITER ;