Sorry for the inconvenience I am developing a systems of events.
The detail is that I have a table exclusively to control all the events, what I am trying to do is eliminate the already expired rows, every so often with the Mysql query.
This is my Query.
CREATE EVENT delete_producto
ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 hour
DO
DELETE
FROM tickero
WHERE duracion < NOW()
This query does everything right, but the problem is when it completes its elapsed time the code disappears eliminating the data that were already expired. What I want is that the query does not disappear and that it automatically runs again after every hour so on.
Is there any way to put automatic and rerun?