Top "Explain" questions

Explain is a SQL command that shows the execution plan of a query.

How do I use DB2 Explain?

How do I use DB2's Explain function? -- both to run it, and to use it to optimize queries. …

sql db2 query-optimization explain
MySQL Explain: what's causing 'Using temporary; Using filesort'

I'm planning on creating a view using this SQL SELECT, but the explain for it shows it's using temporary and …

mysql explain filesort
What does eq_ref and ref types mean in MySQL explain

When we prefix an SQL query with the keyword "explain" we get a table with some columns. Please tell me …

mysql database optimization explain
MySQL EXPLAIN EXTENDED filtered column (obviously it's not a percentage)

I've been searching for this and they all state some sort of percentage, explain this: EXPLAIN EXTENDED SELECT * FROM PageAccess …

mysql explain
JDBC Oracle - Fetch explain plan for query

Im wondering how I can fetch the explain plan using Java. Reason I need this is because we have a …

java oracle jdbc sql-execution-plan explain
Mysql Explain Query with type "ALL" when an index is used

I ran a query in Mysql like below: EXPLAIN SELECT * FROM( SELECT * # Select Number 2 FROM post WHERE parentid = 13 ORDER BY …

mysql sql indexing query-optimization explain
How do you force a query in MySQL to use an index?

I am trying to improve the performance of a hammered wordpress DB by adding indexes to queries that appear in …

mysql wordpress indexing explain
Extra in EXPLAIN printing - 'Impossible WHERE noticed after reading const tables'

I have a simple table called 'million_words'. It has one row with two columns -> id INT UNSIGNED …

mysql explain
Why the rows returns by "explain" is not equal to count()?

mysql> select count(*) from table where relation_title='xxxxxxxxx'; +----------+ | count(*) | +----------+ | 1291958 | +----------+ mysql> explain select * from table …

mysql count explain
How to interpret the output of MySQL EXPLAIN?

I want to select the content of the column text from entrytable. EXPLAIN SELECT text FROM entrytable WHERE user = 'username' &…

mysql query-optimization explain