当与 ASP.NET 和 IIS 一起使用时,MySQL 临时 table 何时会被删除?

When does a MySQL temporary table get dropped when used with ASP.NET and IIS?

我正在使用临时 tables 而 运行 来自服务器端代码的报告(并在这些报告中进行计算),但是临时 table 何时下降?我需要在任何时候手动调用 DROP 还是在 SQL 命令完成时才删除?

A TEMPORARY table is visible only within the current session, and is dropped automatically when the session is closed.

manual

因此,如果您想在断开连接之前保存 space,您可以删除临时表