DOCUMENTACIÓN OXIPRO
Manual de instrucciones - Base de Datos
 
×
Menú
Índice
 

5.56. Evento ba_planillas_acumulado 

 
Nombre del evento:
event_mensual_ba_planillas_acumulado
Tiempo de ejecución:
Último dia del mes, a las 23:40 horas.
Tabla involucrada:
Declaracion SQL:
CREATE EVENT IF NOT EXISTS event_mensual_ba_planillas_acumulado
ON SCHEDULE 
EVERY 1 DAY 
STARTS '2021-12-22 23:40:00' 
COMMENT 'Creación de tabla mensual ba_planillas_acumulado'
DO 
BEGIN 
DECLARE rightnow DATETIME; 
DECLARE hh,mm TINYINT; 
SET rightnow = NOW();
SET hh = HOUR(rightnow); 
SET mm = MINUTE(rightnow); 
 
IF DATE(rightnow) = LAST_DAY(DATE(rightnow)) THEN 
IF hh = 23 THEN 
IF mm = 40 THEN 
CALL SP_ba_planillas_acumulado(); 
END IF; 
END IF; 
END IF; 
END
Procedimiento involucrado: