Show tables from all schemas in Presto

半城伤御伤魂 提交于 2020-02-27 07:12:18

问题


In Presto

SHOW SCHEMAS; returns all schemas

SHOW TABLES FROM foo; returns all tables for foo schema

Is there a simple way to return tables from all schemas in Presto?


回答1:


You can use select table_schema, table_name from information_schema.tables;



来源:https://stackoverflow.com/questions/40938321/show-tables-from-all-schemas-in-presto

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!