1、查看数据库表数量
SELECT count(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA='dbname';
select count(*) tables ,table_schema from information_schema.tables where table_schema='work_ad' group by table_schema;
1、查看数据库表数量
SELECT count(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA='dbname';
select count(*) tables ,table_schema from information_schema.tables where table_schema='work_ad' group by table_schema;
文章来源: blog.csdn.net,作者:lxw1844912514,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/lxw1844912514/article/details/100028892
评论(0)