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