In MySQL, you need to commit this information from a log file, not through a query. Someone will probably tell you that a request is possible, but they are not fair to you. Cm:
http://dev.mysql.com/doc/refman/5.1/en/log-tables.html "Currently, registering in tables results in significantly more server overhead than logging into files."
.. significant enough if you ask this question, you do not want to use it.
So now your question becomes "how do you do this with the log file?". The number of physical reads for a query is not logged in MySQL stock versions. However, it is available on Percona Server. Amplification is awesome (even if I'm biased, I work in Percona):
http://www.percona.com/docs/wiki/patches:slow_extended
The next question: how do you summarize the log to find this data. For this, I suggest mk-query-digest. http://www.maatkit.org/doc/mk-query-digest.html
Morgan tocker
source share