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.
我有一个 CLI 脚本,它通过分叉子线程同时执行 mysql 查询。
我在父对象中创建了 4 个 mysqli 对象并将每个对象分配给子对象。这是我需要做的:
mysqli
$mysqli->autocommit(0)
INSERT
$mysqli->commit()
是否可以在父子之间保持相同的连接以实现提交?