查询某个数据库中表的总数
 

SELECT COUNT(*) FROM information_schema.tables WHERE TABLE_SCHEMA = '数据库名'