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
Post a Comment