要查询每张表中的数据数量,可以使用以下SQL语句:
SELECT table_name, COUNT(*) as total_rowsFROM information_schema.tablesWHERE table_schema = 'your_database_name'GROUP BY table_name;将 “your_database_name” 替换为你要查询的数据库名称。
这个查询语句会在 information_schema.tables 表中查找每张表的名称,并使用 COUNT(*) 函数计算每张表中的行数。最后使用 GROUP BY 子句按照表名称分组。

