Home > Database > Mysql Tutorial > body text

How to query how many records each table has in mysql

王林
Release: 2020-10-19 10:58:42
Original
7711 people have browsed it

Mysql method to query how many records each table has: execute the [select table_name, table_rows from tables where TABLE_SCHEMA = 'name of database';] statement.

How to query how many records each table has in mysql

Mysql method to query how many records each table has

(Recommended tutorial: mysql video tutorial)

Execute the following SQL statement:

use information_schema;
select table_name,table_rows from tables where TABLE_SCHEMA = '数据库的名称' order by table_rows desc;
Copy after login

Related recommendations: mysql tutorial

The above is the detailed content of How to query how many records each table has in mysql. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template