Home >Database >Mysql Tutorial >How to Schedule Daily Tasks in MySQL Event Scheduler at a Specific Time?
Question: How can MySQL Event Scheduler be utilized to perform daily updates at a precise time?
Answer:
To schedule an event to execute every day at a specific time, such as 1 PM, follow these steps:
CREATE EVENT event_name ON SCHEDULE EVERY 1 DAY STARTS (TIMESTAMP(CURRENT_DATE) + INTERVAL 1 DAY + INTERVAL 1 HOUR)
DO UPDATE `ndic`.`students` SET `status` = '0';
Additional Considerations:
The above is the detailed content of How to Schedule Daily Tasks in MySQL Event Scheduler at a Specific Time?. For more information, please follow other related articles on the PHP Chinese website!