i am doing:
explain select * from calibration;
it says 52133456345632 rows
when i do:
select count(*) from calibration;
i am getting 52134563456961
can someone explain whats going on here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Table statistics (used by EXPLAIN) are based on system-cached values that may not be accurate.
http://dev.mysql.com/doc/refman/5.1/en/using-explain.html says:
So the ‘count()’ version of the query will be accurate, as it will really ‘count’ existing rows. The ‘explain’ version does not necessarily count your rows, but might use an estimation/cache. Explain is not intended to be actually used in code or production – it is just a tool to help analysing your queries.