How exactly do transactions with PHP PDO work with concurrency?

白昼怎懂夜的黑 提交于 2019-12-08 04:05:24

Transactions are atomic only with respect to other database connections trying to use the same data, i.e. other connections will see either no changes made by your transaction, or all changes; "atomic" meaning no other database connection will see an in-between state with some data updated and other not.

PHP code between queries won't break atomicity, and it does not matter where you prepare your statements.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!