Updated on 2024-12-18 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.

Precautions

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

Syntax

1
2
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;