Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 php 代码中有这个查询:
$diminui = mysql_query(" UPDATE config_cliente SET saldo = saldo - $price WHERE accountcode='$accountcode'");
我怀疑如果有超过 1 个脚本同时运行此查询,会发生什么?
如果您的存储数据库引擎设置为 InnoDB,您不必太担心……在此处阅读更多关于事务隔离级别的信息。