MySQL Forums
Forum List  »  Triggers

Re: Trigger for moving a few records to another table
Posted by: Peter Brawley
Date: February 10, 2015 12:34PM

> move a few records (500) to message_archive when the count of the records with the same column group_id is the same...

The same as what?

Burdening ordinary row input with an archiving task is often not the most efficient approach; such batch jobs are usually best scheduled at offpeak times. IAC a Trigger on table t is not allowed to delete from table t. You'll need to rethink this requirement.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Trigger for moving a few records to another table
1114
February 10, 2015 12:34PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.