sql - Query to count the exact number of records in all tables -
ihello,
i'm trying count each table in mysql database how many records there in it.
all of tables happen in innodb , this query
select table_rows information_schema.tables table_schema = 'myschema';
is way of estimate (there +846 records , tells me there +-400)
is there way count more exact number of rows similar query? doen't matter how long query takes tot run. (p.s. not using php or similar language)
if length of query doesn't matter doing following each table in database:
select count(*) mytable
Comments
Post a Comment