0

I have 2 tables of type innoDB. I need to lock table 1 until I select a row from table1 and insert a new row in table 2 with the last inserted id of table 1. I face difficulties here as my script might run every second in different sessions. So the records are added to table 1 while inserting to table 2.

4

0 回答 0