暂无图片
mysql为什么删除的是myisam引擎的表?
我来答
分享
smith0907
2023-08-23
mysql为什么删除的是myisam引擎的表?

在MySQL中,同一个会话里面,创建两张表create table t(id int primary key) engine=innodb;create temporary table t(id int) engine=myisam; 请问执行drop table t;为什么删除的是myisam引擎的表?

我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
白头叶猴

原因不在存储引擎,而是临时表;

https://dev.mysql.com/doc/refman/5.7/en/temporary-table-problems.html

  • If a TEMPORARY is created with the same name as an existing non-TEMPORARY table, the non-TEMPORARY table is hidden until the TEMPORARY table is dropped, even if the tables use different storage engines.

暂无图片 评论
暂无图片 有用 1
打赏 0
回答交流
Markdown


请输入正文
提交