gpt4 book ai didi

php - 当 2 个 MySQL 连接使用相同的临时表名时,它们是否可能崩溃?

转载 作者:行者123 更新时间:2023-11-29 09:02:42 25 4
gpt4 key购买 nike

我对 MySQL 的调用顺序是这样的:

Connection1: 
create temporary table 'temp_table'...

Connection2:
create temporary table 'temp_table'... (already exists, crash???)

Connection1:
drop table 'temp_table'...

Connection2:
drop table 'temp_table'... (no longer exists, crash???)

这种情况有可能发生吗?或者每个连接都有自己的临时表空间,这样它们(连接)就不会与其他连接冲突?

最佳答案

没有;临时表对于创建它们的连接来说是本地的。它们对其他客户端不可见,并且单独的客户端可以创建相互影子的临时表。

关于php - 当 2 个 MySQL 连接使用相同的临时表名时,它们是否可能崩溃?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8115464/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com