Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using HetuEngine/ Common HetuEngine SQL Syntax/ HetuEngine DDL SQL Syntax/ SHOW CREATE TABLE
Updated on 2025-03-17 GMT+08:00
SHOW CREATE TABLE
Syntax
SHOW CREATE TABLE table_name
Description
This statement is used to display the SQL creating statement for a specified data table.
Example
To display the SQL statements that can be used to create the table orders:
CREATE TABLE orders (
orderkey bigint,
orderstatus varchar,
totalprice double,
orderdate date
)
WITH (format = 'ORC', location='/user',orc_compress='ZLIB',external=true, "auto.purge"=false);
show create table orders;
Create Table
-------------------------------------------------
CREATE TABLE hive.default.orders (
orderkey bigint,
orderstatus varchar,
totalprice double,
orderdate date
)
WITH (
external_location = 'hdfs://hacluster/user',
format = 'ORC',
orc_compress = 'ZLIB',
orc_compress_size = 262144,
orc_row_index_stride = 10000,
orc_stripe_size = 67108864
)
(1 row) Parent topic: HetuEngine DDL SQL Syntax
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.