I have a table t1 with fields id, name and date. When I update the date to a certain value I want to move that entry to another table t2 (Remove it in t1 and insert it into t2). I explicitly want to do this on an UPDATE operation and not a DELETE operation.
I tried doing it with a AFTER UPDATE ON t1 trigger, however, I found out that I can't delete an entry from t1 in a trigger for t1.
Does that mean I need to do this with a procedure? If yes, how do I make a procedure run everytime I make an UPDATE of the date field to a certain value in t1?