database - MySQL Deadlock Issue -


I am working on an online trading project. I
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?

Do you want the ID that you put before?

You can try something like this

  include in Table 1 (title, user id) value ('test', 1); SET @ last_id_in_table1 = LAST_INSERT_ID ();    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -