--- url: "https://use-the-index-luke.com/sql/explain-plan" titulek: "Reading Database Execution Plans" h1: "Execution Plans" popis: "Execution plans are the “assembly code” of databases—just easier to read." jazyk: "en" kanonicka: "https://use-the-index-luke.com/sql/explain-plan" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:15:38" znaku: 2734 slov: 299 kodovani: "utf-8" sha256: "a2d708288ed6bdbb458fcc85fa29dacabbabe224edf64323a90df268d7d45f5f" --- by [Markus Winand](//winand.at/home). # Execution Plans --- Before the database can execute an SQL statement, the optimizer has to create an execution plan for it. The database then executes this plan in a step-by-step manner. In this respect, the optimizer is very similar to a compiler because it translates the source code (SQL statement) into an executable program (execution plan). The execution plan is the first place to look when searching for the cause of slow statements. The following sections explain how to retrieve and read an execution plan to optimize performance in various databases. ## Contents 1. *[Db2 (LUW)](/sql/explain-plan/db2)* : *[Getting](/sql/explain-plan/db2/getting-an-execution-plan)* • *[Operations](/sql/explain-plan/db2/operations)* • *[Access vs. filter predicates](/sql/explain-plan/db2/filter-predicates)* 2. *[MySQL](/sql/explain-plan/mysql)* : *[Getting](/sql/explain-plan/mysql/getting-an-execution-plan)* • *[Operations](/sql/explain-plan/mysql/operations)* • *[Access vs. filter predicates](/sql/explain-plan/mysql/access-filter-predicates)* 3. *[Oracle](/sql/explain-plan/oracle)* : *[Getting](/sql/explain-plan/oracle/getting-an-execution-plan)* • *[Operations](/sql/explain-plan/oracle/operations)* • *[Access vs. filter predicates](/sql/explain-plan/oracle/filter-predicates)* 4. *[PostgreSQL](/sql/explain-plan/postgresql)* : *[Getting](/sql/explain-plan/postgresql/getting-an-execution-plan)* • *[Operations](/sql/explain-plan/postgresql/operations)* • *[Access vs. filter predicates](/sql/explain-plan/postgresql/filter-predicates)* 5. *[SQL Server](/sql/explain-plan/sql-server)* : *[Getting](/sql/explain-plan/sql-server/getting-an-execution-plan)* • *[Operations](/sql/explain-plan/sql-server/operations)* • *[Access vs. filter predicates](/sql/explain-plan/sql-server/filter-predicates)* 6. *[SQLite](/sql/explain-plan/sqlite)* : *[Getting](/sql/explain-plan/sqlite/getting-an-execution-plan)* • *[Operations](/sql/explain-plan/sqlite/operations)* 7. *[Gupta SQLBase](/sql/explain-plan/sqlbase)* : *[Getting](/sql/explain-plan/sqlbase/getting-an-execution-plan)* • *[Operations](/sql/explain-plan/sqlbase/operations)* *You can’t learn everything in one day. Subscribe the newsletter via **[E-Mail](https://winand.at/lists)**, **[Bluesky](https://bsky.app/profile/winand.at)** or **[RSS](/blog/feed)** to gradually catch up. Have a look at [modern-⁠sql.com](https://modern-sql.com) as well.* ## About the Author Markus Winand provides insights into SQL and shows how different systems support it at [modern-sql.com](https://modern-sql.com). Previously he made [use-the-index-luke.com](https://use-the-index-luke.com), which is still actively maintained. Markus can be hired as trainer, speaker and consultant via [winand.at](https://winand.at).