Question

I just created a table and ran a program which should add 170,256 rows.Then I checked the number of rows using PHP MyAdmin GUI. Below is the image.

enter image description here

According to the "Rows" column, I got only 162,230 rows! Then I ran the below query

SELECT COUNT(*) FROM `key_hash`

This generated the below result, which should be correct.


enter image description here


So my question is, how come the same thing display 2 different values? How should I know which is correct?

Was it helpful?

Solution

SELECT COUNT(*) FROM `key_hash`

provides you with exact row count.

What you see in summary (162,230) is just estimation (hence ~ sign)

Here is more detailed explaination

Why is the estimated rows count very different in phpmyadmin results?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top