MySQL Forums
Forum List  »  Triggers

Re: Delete trigger for deleting same table tuples
Posted by: irek kordirko
Date: January 27, 2012 12:14PM

w o Wrote:
> Hi there,
> could anyone adivse me a way to automate, via
> trigger, the deletion of table tuples on the
> delete event of this same table?

It is not possible.
Read FAQ:

A trigger can also affect other tables, but it is not permitted to modify a table that is already being used (for reading or writing) by the statement that invoked the function or trigger.

Options: ReplyQuote

Written By
w o
January 27, 2012 08:33AM
Re: Delete trigger for deleting same table tuples
January 27, 2012 12:14PM

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.