Tagged articles
2 articles
Page 1 of 1
Architect
Architect
Jul 1, 2016 · Databases

Two Types of Temporary Tables in MySQL and Their Usage

The article explains MySQL's external and internal temporary tables, describes ten scenarios where internal temporary tables are created—including hints, derived tables, ORDER BY, GROUP BY, IN‑subqueries, UNION and aggregates—and provides example SQL statements with EXPLAIN JSON output to illustrate performance impacts.

SQL Optimizationinternal temporary tablemysql
0 likes · 10 min read
Two Types of Temporary Tables in MySQL and Their Usage