开发者

Event generation in database based on time

I am wondering if there is any method available to i开发者_如何学Pythonmplement event trigger based on time. Lets say i want to deleted/modify a record in a certain time span for example in two days/48 hrs automatically,do i ve to implement something via code for checking it everyday? or database provide any functionality that makes life easier to check the time automatically to trigger the event. Thanks in advance.

Regards OS


You usually want a cron job, for that. Optionally with some kind of scheduled_jobs table.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜