Help Center> GaussDB(DWS)> 8.3.0.x> DDL Syntax> REFRESH MATERIALIZED VIEW
Updated on 2024-04-28 GMT+08:00

REFRESH MATERIALIZED VIEW

Function

Refreshes a materialized view. The refresh mode is specified by the REFRESH parameter in the CREATE MATERIALIZED VIEW syntax. Currently, full refresh and scheduled refresh are supported. This syntax is supported only by clusters of version 8.3.0 or later.

Precautions

The refresh operation blocks the DML operations on the base table.

Syntax

1
REFRESH MATERIALIZED VIEW [schema.]materialized_view_name

Parameter Description

materialized_view_name

Indicates the name of the materialized view to be refreshed.

Examples

Refresh a materialized view.

1
REFRESH MATERIALIZED VIEW mv1;