SHOW CREATE Statement in Apache Impala

In this post, we will be discussing the most frequently used admin commands specifically the SHOW commands. SHOW is a command that displays information about active connections and database objects.

In order to get the CREATE TABLE statement, use the following command.
SHOW CREATE TABLE [database_name].table_name

In order to get the CREATE VIEW statement, use the following command.
SHOW CREATE VIEW [database_name].view_name

In order to get the CREATE FUNCTION statement, use the following command. (Ref)
SHOW CREATE FUNCTION [database_name].function_name

The statement SHOW CREATE DATABASE isn’t accessible. However, there is a workaround that will be described in more detail in future publications.

Hope you find this article helpful.

Please subscribe for more interesting updates.

One comment

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