Explain.... It is a very simple command that I feel is one
of the most overlooked commands by new MySQL users. It is also a
very valuable command available for MySQL. I realize I am
preaching to the choir for a lot of MySQL users. However, for
everyone who uses explain, we are bound to have many who do
not. The MySQL documentation on this is great and available here and Optimizing Queries
with EXPLAIN
Developer and a dba issues will continue for years, but we
can at least start on a level playing field. When writing a
query, regardless of what it is, it is a good practice is to
start it with explain first. This can achieve a couple things for
you.
- It checks your syntax to help you avoid mistakes. …