Quantcast
Viewing latest article 5
Browse Latest Browse All 5

How to schedule a stored procedure in MySQL

I have this stored procedure. How can I run this for example with intervals of 5 seconds? Like a routine for eliminate data with a time-stamp older than one day?

DROP PROCEDURE IF EXISTS `delete_rows_links` GOCREATE PROCEDURE delete_rows_linksBEGIN     DELETE activation_link    FROM activation_link_password_reset    WHERE  TIMESTAMPDIFF(DAY, `time`, NOW()) < 1 ; END GO

Viewing latest article 5
Browse Latest Browse All 5

Trending Articles