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
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论