MySQL Forums
Forum List  »  Triggers

deadlock happens
Posted by: jun jun
Date: December 05, 2023 03:09AM

I execute as the following in my code then deadlock happens. Do you know why deadlock happen and have any solutions to resolve ?

loop {
insert data into A table;
insert data into B table; (get id from a table to insert and some another values)
update data into A table by id.


Options: ReplyQuote

Written By
deadlock happens
December 05, 2023 03:09AM

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.