mysql 获取表名,及表字段数

根据如下语句,查询对应数据;

select count(a.table_name),b.table_name from information_schema.COLUMNS  a, 
( select table_name
from information_schema.`TABLES`
where  table_schema='hdtb_pilot') b
where a.table_name = b.table_name
group by a.table_name

评论

暂无评论