mysql里如何查询含特定表的数据库

例如在mysql中共有10个数据库,其中2个数据库含有表“wp_config”, 怎么通过sql查询到含有表“wp_config”的数据库?

select table_schema from information_schema.tables where table_name = 'wp_config';

猜你喜欢

转载自dong-qu.iteye.com/blog/1542392