Autorunning Query in mysql

后端 未结 4 1206
野趣味
野趣味 2020-12-13 16:11

Is it possible to make a stored procedure that run every night 11 pm , check in table if any record is modified for last six month, If some record is modified for last six m

4条回答
  •  余生分开走
    2020-12-13 17:04

    You can also write a script that processes your data in Python, Perl, PHP, etc.

    After that, simply setup cron entry using crontab -e and add following line:

    0 23 * * * /path/to/my/script.pl 2>&1 >/dev/null
    

    If you don't specify 2>&1 >/dev/null, you will get email with execution results.

提交回复
热议问题