MySQL Forums
Forum List  »  MySQL Workbench

Re: Error Code: 1442. Can't update table tablename in stored function/trigger because it is already used by statement which invoked this stored function
Posted by: Peter Brawley
Date: April 27, 2021 10:32AM

Read again---the Trigger you cite inserts into a different table

As the manual says unambiguously, to modify values in the table and rows for which the Trigger is defined, use SET NEW.columnname syntax.

Options: ReplyQuote




Sorry, only registered users may post in this forum.

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.