php - mysql LOCK TABLE - no "commit" of data until UNLOCK -


i have curious problem - have php (5.5.9) script writes mysql (5.6.27) database. pseudocode looks this:

lock table write, b write, ... , c write; -- inserts/updates unlock tables; 

if script runs fine. if stop script half-way operations performed not committed (i not using transactions).

i baffled, thought there no transaction-like logic when comes lock, no other sessions able access tables. can please me understand going on under hood prevent data being persisted in scenario?

thank :)


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

java - Log4j2 configuration not found when running standalone application builded by shade plugin -

python - How do I create a list index that loops through integers in another list -