mysql 查找数据库中有多少张表
SELECT count(*) TABLES, table_schema FROM information_schema.TABLES where table_schema = 'test' GROUP BY table_schema;
将test更改成你要查找的数据库就可以了。
发布时间: 2013-02-24 17:58:56 作者: rapoo
mysql 查找数据库中有多少张表
SELECT count(*) TABLES, table_schema FROM information_schema.TABLES where table_schema = 'test' GROUP BY table_schema;
将test更改成你要查找的数据库就可以了。