SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES WHERE table_schema = 'test'
其中test是 所查库名