Yes, thanks 🙂
But what I am wondering about is, if I (pseudo):
LOCK myTable, myTable2;
insert into myTable VALUES(2,2,2);
update myTable2 set name = "Zeev";
UNLOCK myTable, myTable2;
We agree the two tables are locked for the processing of both queries, but what if some other mySQL thread (some other instantiation) would make a
insert into myTable2 VALUES("Jack");
at the same moment as the two tables are LOCKed? The last query surely has no effect as long the the two tables are locked, but how does mySQL handle the "locked out" query? Does is simply ignore it, so it will never have effect? Does it make sure that "Jack" is inserted when the two tables have been unlocked again?
Thanks
Cheers,
Stefan