MySQL gives fluctuating row count when I query schema?

后端 未结 4 2060
春和景丽
春和景丽 2020-12-06 04:36

Here I am pressing up and running the same command on my dev DB on my laptop, over and over;

mysql> select count(*) from tblTraceOutput;
+----------+
| co         


        
4条回答
  •  醉梦人生
    2020-12-06 05:04

    Assuming you are using InnoDB, as that is the default in 5.5.x according to the MySQL INFORMATION_SCHEMA TABLES documentation.

    And this note:

    The TABLE_ROWS column is NULL if the table is in the INFORMATION_SCHEMA database.

    For InnoDB tables, the row count is only a rough estimate used in SQL optimization. (This is also true if the InnoDB table is partitioned.)

提交回复
热议问题