雅典娜普雷斯托列出空表 [英] Athena Presto list empty tables

查看:84
本文介绍了雅典娜普雷斯托列出空表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想列出数据库Athena中的所有空表。

I would like to list all empty tables in my database Athena.

我尝试过:

select table_schema, table_name from information_schema.tables
where table_schema = 'database'

但是像这样,我只列出带有数据库名的表名。
感谢您的帮助。

But like this I list only table name with database name. Thanks for your help.

推荐答案

我认为在单个查询中是不可能的。您的查询为您提供了一个表列表。有了这一点,我认为您现在可以从外部工具对其进行迭代。

I do not think it is possible within a single query. Your query gives you a list of tables. Having that I think you could now iterate over that from the external tool.

这篇关于雅典娜普雷斯托列出空表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆