Athena Presto list empty tables

大城市里の小女人 提交于 2019-12-11 16:52:32

问题


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

I tried :

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.


回答1:


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.



来源:https://stackoverflow.com/questions/49410867/athena-presto-list-empty-tables

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