MySQL Forums
Forum List  »  InnoDB

Re: Exact table count for all tables in a schema.
Posted by: Peter Brawley
Date: September 13, 2019 09:43AM

It's a transactional engine, so at any moment "exact row count" depends on what's happening inside transactions.

-- InnoDB lastest estimate ...
select table_rows
from information_schema.tables
where table_schema="..." and table_name="...";

-- Count from index ...
select count(1) from ...;

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Exact table count for all tables in a schema.
168
September 13, 2019 09:43AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.