doc-exports/docs/dli/sqlreference/dli_08_0091.html
Su, Xiaomeng 04d4597cf3 dli_sqlreference_0511_version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2023-11-02 14:34:08 +00:00

4.3 KiB

Viewing Table Creation Statements

Function

This statement is used to show the statements for creating a table.

Syntax

1
SHOW CREATE TABLE table_name;

Keyword

CREATE TABLE: statement for creating a table

Parameters

Table 1 Parameter description

Parameter

Description

table_name

Table name

Precautions

The table specified in this statement must exist. Otherwise, an error will occur.

Example

  1. Create a table. For details, see Creating an OBS Table or Creating a DLI Table.
  1. Run the following statement to view the statement that is used to create table test:
    1
    SHOW CREATE TABLE test;