MySQL数据库查询所有表名

查找指定库中所有表名

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

注:替换db_name为自己的数据库名

 

示例

 

posted @ 2019-07-05 16:42  问北  阅读(23578)  评论(0编辑  收藏  举报