Description
The SHOW CREATE TABLE
command is used to obtain the creation statement of a specified table, materialized view, or view. Therefore, this article uses SHOW CREATE TABLE to view the creation statement of a materialized view.
Syntax
Parameter Description
object_name
: Specifies the name of the database object to query. This can be a table, materialized view, or view.
Usage Example
1. View the creation statement of a materialized view
If you want to view the creation statement of a materialized view named mv
, you can use the following command:
The system will return output similar to the following: