> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# SHOW CREATE MATERIALIZED VIEW

> SHOW CREATE MATERIALIZED VIEW shows the definition of a specific asynchronous materialized view.

SHOW CREATE MATERIALIZED VIEW shows the definition of a specific asynchronous materialized view.

**Tip**

This operation does not require privileges.

## Syntax

```SQL theme={null}
SHOW CREATE MATERIALIZED VIEW [database.]<mv_name>
```

Parameters in brackets \[] is optional.

## Parameters

| **Parameter** | **Required** | **Description** |
| - | - | - |
| mv\_name | yes | The name of the materialized view to show. |

## Returns

| **Return** | **Description** |
| - | - |
| Materialized View | The name of the materialized view. |
| Create Materialized View | The definition of the materialized view. |

## Examples

Example 1: Show the definition of a specific materialized view

```Plain theme={null}
MySQL > SHOW CREATE MATERIALIZED VIEW lo_mv1\G
*************************** 1. row ***************************
       Materialized View: lo_mv1
Create Materialized View: CREATE MATERIALIZED VIEW `lo_mv1`
COMMENT "MATERIALIZED_VIEW"
DISTRIBUTED BY HASH(`lo_orderkey`) 
REFRESH ASYNC
PROPERTIES (
"replication_num" = "3",
"storage_medium" = "HDD"
)
AS SELECT `wlc_test`.`lineorder`.`lo_orderkey` AS `lo_orderkey`, `wlc_test`.`lineorder`.`lo_custkey` AS `lo_custkey`, sum(`wlc_test`.`lineorder`.`lo_quantity`) AS `total_quantity`, sum(`wlc_test`.`lineorder`.`lo_revenue`) AS `total_revenue`, count(`wlc_test`.`lineorder`.`lo_shipmode`) AS `shipmode_count` FROM `wlc_test`.`lineorder` GROUP BY `wlc_test`.`lineorder`.`lo_orderkey`, `wlc_test`.`lineorder`.`lo_custkey` ORDER BY `wlc_test`.`lineorder`.`lo_orderkey` ASC ;
1 row in set (0.01 sec)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.