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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -