mysql统计某一个数据库中有几张表

一、当存在information_schema时 

SELECT count(*) TABLES, table_schema FROM information_schema.TABLES

where table_schema = 'test' GROUP BY table_schema;
原文地址:https://www.cnblogs.com/bluewhy/p/5001249.html