Show tables from all schemas in Presto

Gregology picture Gregology · Dec 2, 2016 · Viewed 12.6k times · Source

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?

Answer

袁安峰 picture 袁安峰 · Dec 3, 2016

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