Quantcast
Channel: How to schedule a stored procedure in MySQL - Stack Overflow
Viewing all articles
Browse latest Browse all 5

How to schedule a stored procedure in MySQL

$
0
0

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 all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>