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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -