Php 当两个MySQL连接使用相同的临时表名时,它们是否可能崩溃?
我对MySQL的调用顺序如下:Php 当两个MySQL连接使用相同的临时表名时,它们是否可能崩溃?,php,mysql,connection,temp-tables,Php,Mysql,Connection,Temp Tables,我对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 exis
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???)
有可能发生这种情况吗?或者每个连接都有自己的临时表空间,以便它们(连接)不会与其他连接冲突?不,它不应该崩溃。从其他连接看不到临时表。他们不会互相冲突。不会;临时表是创建它们的连接的本地表。其他客户端看不到它们,单独的客户端可以创建相互隐藏的临时表。如果使用持久连接,我认为可能会崩溃