mysql中查询一个数据库中有多少表的方法:
mysql中直接使用下面的命令即可查询:
SELECT count(*) TABLES, table_schema FROM information_schema.TABLES where table_schema = '库名' GROUP BY table_schema;
在information_schema下打开查询,输入语句:
SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES WHERE table_schema = 'test';
推荐:MySQL教程