Updated on 2024-09-03 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;