'Is there anyway to remove a row in mysql automatically? Nodejs, my-sql [duplicate]
In mongodb with mongoose we can remove data automatically like this: expiresAt:{type: Date,default: Date.now(),index: {expireAfterSeconds: 500,},},
But in mysql I cant find any solution for this. Please help.
Solution 1:[1]
you can use the Event Scheduler to start a query every secs,mins,.... if
you have a timestamp
see: https://dev.mysql.com/doc/refman/5.7/en/event-scheduler.html
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Bernd Buffen |
