Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show tables from all schemas in Presto

Tags:

sql

presto

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?

like image 463
Gregology Avatar asked Dec 02 '16 17:12

Gregology


1 Answers

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

like image 154
袁安峰 Avatar answered Oct 11 '22 11:10

袁安峰