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: http://dev.mysql.com/doc/refman/5.5/en/faqs-triggers.html#qandaitem-B-5-1-9
Quote

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


Subject
Views
Written By
Posted
4199
w o
January 27, 2012 08:33AM
Re: Delete trigger for deleting same table tuples
1516
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.