database - MySQL Deadlock Issue -
I am working on an online trading project. I Do you want the ID that you put before? You can try something like this
insert a line on Table T1 (Inodb engine) and There is a trigger after the occurrence of the occurrence. In the
trigger, I get the data using the selection statement in a table like " SELECT * FROM t1 WHERE id = NEW.ID ".
It works completely 2-3 months. But now it releases the deadlock
What is the reason behind this?
Is it possible to have more than one thread access to the same table at one time?
include in Table 1 (title, user id) value ('test', 1); SET @ last_id_in_table1 = LAST_INSERT_ID ();
Comments
Post a Comment