Raymond Raymond / Code Snippets & Tips

List Tables in Hive Database

event 2022-07-08 visibility 5,345 comment 0 insights toc
more_vert
insights Stats
toc Table of contents

The following code snippet shows you how to list all the tables within a Hive database.

Code snippet

show tables in [database name];

Example:

show tables in test_db;
test_table

The result shows that there is only one table named test_table in test_db.

More from Kontext
comment Comments
No comments yet.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts