关于mysql:mysql-获取表名及表字段数

4次阅读

共计 213 个字符,预计需要花费 1 分钟才能阅读完成。

依据如下语句,查问对应数据;

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
正文完
 0