Databases · Middle · Question 11 of 75
What is the difference between EXPLAIN and EXPLAIN ANALYZE?
- 1
EXPLAIN ANALYZEonly checks syntax - 2They are identical
- ✓Correct answer:
EXPLAINshows the planned execution with estimates;EXPLAIN ANALYZEactually runs the query and shows real times and row counts
Explanation
Because ANALYZE runs the query, wrap data-changing statements in BEGIN ... ROLLBACK. Add BUFFERS to see how much data was read.