Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/245.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 当两个MySQL连接使用相同的临时表名时,它们是否可能崩溃?_Php_Mysql_Connection_Temp Tables - Fatal编程技术网

Php 当两个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

我对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???)

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

不,它不应该崩溃。从其他连接看不到临时表。他们不会互相冲突。

不会;临时表是创建它们的连接的本地表。其他客户端看不到它们,单独的客户端可以创建相互隐藏的临时表。

如果使用持久连接,我认为可能会崩溃