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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -