mysql 查询数据库有多少个表

查询某个数据库有多少表 

select table_name from information_schema.tables where table_schema='库名';

查询某个数据库下某张表有哪些字段及字段类型 

select column_name,column_type from information_schema.columns where table_schema='库名' and table_name='表名';
发布了35 篇原创文章 · 获赞 3 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/takujo/article/details/87886607