MySQL数据库查询所有表名 查找指定库中所有表名 select table_name from information_schema.tables where table_schema='db_name'; 注:替换db_name为自己的数据库名 示例