Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am trying to find the syntax to execute a stored procedure once a day around 11pm. This is what I current have:

CREATE EVENT e_call_myproc
    ON SCHEDULE
      EVERY 1 DAY
    DO CALL upd_override("202006", "MH");

How to I specify the time to execute?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
221 views
Welcome To Ask or Share your Answers For Others

1 Answer

you have to make a scheduled event like so : STARTS and ENDS are optional

CREATE EVENT e_call_myproc
ON SCHEDULE EVERY 1 DAY
STARTS CURRENT_TIMESTAMP
ENDS [enddate]

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...