Help Center/
Data Lake Insight/
SQL Syntax Reference (Paris Region)/
Spark SQL Syntax Reference/
Viewing Tables/
Viewing Table Creation Statements
Updated on 2022-12-07 GMT+08:00
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
Parameter |
Description |
---|---|
table_name |
Table name |
Precautions
The table specified in this statement must exist. Otherwise, an error will occur.
Example
- Create an OBS or DLI table, for example, test. For details, see Creating an OBS Table or Creating a DLI Table.
- Run the following statement to view the statement that is used to create table test:
1
SHOW CREATE TABLE test;
Parent topic: Viewing Tables
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot