概要

SHOW CREATE TABLE table_name

描述

显示定义给定表格的 SQL 语句。

示例

SHOW CREATE TABLE sf1.orders;

-----------------------------------------
 CREATE TABLE tpch.sf1.orders (
    orderkey bigint,
    orderstatus varchar,
    totalprice double,
    orderdate varchar
 )
 WITH (
    format = 'ORC',
    partitioned_by = ARRAY['orderdate']
 )
(1 row)