Home > Archive > MySQL ODBC Connector > January 2006 > Row Count Discrepency









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Row Count Discrepency
JJ

2006-01-01, 7:23 am

I have an InnoDB table in a MySQL 4.1.14 database. Can anyone suggest
why MySQL Adminstrator says the table has 497 rows, while doing a query or
a count on the same table shows that it only has 434?


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql? unsub...sie.nctu.edu.tw

Terry Riley

2006-01-01, 7:23 am

----- Original Message -----

> I have an InnoDB table in a MySQL 4.1.14 database. Can anyone suggest
> why MySQL Adminstrator says the table has 497 rows, while doing a query
> or a count on the same table shows that it only has 434?
>


IIRC, InnoDB only gives an estimated row count in admin (or SQLyog or
whatever), not an actual count, because of the way it does (or doesn't)
store row information.

MyISAM tables, on the other hand, show accurately because they store the
rowcount as part of the table data.

Terry

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql? unsub...sie.nctu.edu.tw

William Allaire

2006-01-02, 3:23 am

Some more information can be found here:

http://dev.mysql.com/doc/refman/5.0...strictions.html



On 12/31/05 7:29 PM, "JJ" <jj@zolx.com> wrote:

> I have an InnoDB table in a MySQL 4.1.14 database. Can anyone suggest
> why MySQL Adminstrator says the table has 497 rows, while doing a query or
> a count on the same table shows that it only has 434?
>




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql? unsub...sie.nctu.edu.tw

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com