select count(*) TABLES,table schema from information schema .TABLES where table schema ='stjj' group by table schema; --查询数据表
use information_schema;
select table_name,table_rows from TABLES where table schema ='stjj' ORDER BY table rows desc; --查询数据条数
select * from information schema.COLUMNS where table schema ='stjj'; ---查询数据字段
本文介绍使用SQL查询特定数据库中所有表的名称、每张表的行数以及表的字段信息的方法。通过具体SQL语句示例,帮助读者掌握如何有效地从information_schema中获取所需数据。
152

被折叠的 条评论
为什么被折叠?



