MySQL Forums
Forum List  »  Triggers

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

I execute as the following in my code then deadlock happens. Do you know why deadlock happen and have any solutions to resolve ?
begin transaction;
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.
}
commit;

Options: ReplyQuote


Subject
Views
Written By
Posted
deadlock happens
131
December 05, 2023 03:16AM


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.