繁体   English   中英

列出所有数据库中的表

[英]List tables in all the databases

我在mysql有三个数据库。 我想列出每个数据库中的所有表。 我怎样才能做到这一点?

select table_schema as database_name, table_name
    from information_schema.tables
where table_type = 'BASE TABLE'
    and table_schema not in ('information_schema','mysql',
                             'performance_schema','sys')
order by database_name, table_name;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM