mysql - How to make delayed DELETE SQL query? -



mysql - How to make delayed DELETE SQL query? -

i need delete rows table 14 days after delete query has been made. possible using mysql?

you can utilize built-in mysql event scheduler schedule query or stored routine run at arbitrary point in time:

this illustration of minimal create event statement:

create event myevent on schedule @ current_timestamp + interval 1 hr update myschema.mytable set mycol = mycol + 1;

please mind, the event scheduler disabled default.

mysql delete-row

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -