5
Ho creato qualche evento. Funziona nel momento in cui l'ho creato. Ma voglio eseguire l'evento quando viene avviato il server mysql. Per esempio ho creato un evento chiamato codice CL_PL_CREDIT sembra,Programmazione eventi all'avvio mysql
delimiter |
CREATE EVENT RURALSHORES2.UpLv
ON SCHEDULE
EVERY 1 MONTH
DO
BEGIN
update emp_lv_rem set cl_count=cl_count+1,pl_count=pl_count+1.25 where emp_id in (select emp_id from emp_main where EmploymentType="Permanent" or EmploymentType="Regular");
update emp_lv_rem set cl_count=1,pl_count=1 where emp_id in (select emp_id from emp_main where EmploymentType="Probation");
update emp_lv_rem set cl_count=1,pl_count=0 where emp_id in (select emp_id from emp_main where EmploymentType="Contract" or EmploymentType="Partime" or EmploymentType="Trainee" or EmploymentType="Consultant");
update emp_lv_rem set cl_count=0,pl_count=0 where emp_id in (select emp_id from emp_main where EmploymentType="Contract" and EmploymentType<>"Partime" and EmploymentType<>"Trainee" and EmploymentType<>"Consultant" and EmploymentType="Permanent" and EmploymentType="Regular" and EmploymentType="Probation");
END |;
delimiter ;
Quando digito eventi spettacolari si sta mostrando come inizia 2013/08/23 10:42:53, ma voglio correre su ogni 1 ° giorno del mese quando viene avviato il server.
vuoi dire che il riavvio del server ogni 1 ° giorno del mese e che si desidera eseguire l'evento ogni volta che il server riavviare, o che si desidera eseguire l'evento ogni 1 ° giorno mese? – RenkyaZ