SHOW CREATE TABLE
Descriptionβ
This statement is used to display the creation statement of the data table.
grammar:
SHOW [BRIEF] CREATE TABLE [DBNAME.]TABLE_NAME
illustrate:
-
BRIEF
: will not show partitions info -
DBNAMNE
: database name -
TABLE_NAME
: table name
Exampleβ
-
View the table creation statement of a table
SHOW CREATE TABLE demo.tb1
Keywordsβ
SHOW, CREATE, TABLE