Bảng tạm tự xóa khi session kết thúc. Nhưng nếu muốn xóa ngay trong session, dùng DROP TABLE.
Ví dụ
Xóa bảng tạm SalesSummary:
mysql> DROP TABLE SalesSummary;
Query OK, 0 rows affected (0.00 sec)
Xác nhận bảng đã xóa:
mysql> Select * from SalesSummary;
ERROR 1146 (42S02): Table 'query.SalesSummary' doesn't exist