Show Tables with Search Pattern – Impala

We frequently use the SHOW TABLES command to display a list of all the tables in the current database. If the list is too long, however, we choose to search the table we need.

We may use the LIKE operator in conjunction with the show tables command to filter the list, as seen below.

SHOW TABLES LIKE pattern.

Example:
SHOW TABLES LIKE ‘test*’;
We used the percentage symbol (%) to filter the tables in most RDBMSs, however we use asterisk (*) in Impala.

Impala_show_tables_with_search_pattern

Hope you find this article helpful.

Please subscribe for more interesting updates.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s