乐趣区

关于mysql: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
退出移动版