Search the MySQL manual:

A.6.1 How to avoid table scan,,,

EXPLAIN will show ALL in the type column when MySQL uses a table scan to resolve a query. This happens usually when:

What you can do to avoid a 'wrong' table scan for big tables are:

User Comments

Add your own comment.