龍子 发表于 2016-10-19 08:58:01

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

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

select table_schema from information_schema.tables where table_name = 'wp_config';
页: [1]
查看完整版本: mysql里如何查询含特定表的数据库