ALTER-ASYNC-MATERIALIZED-VIEW

Name

ALTER ASYNC MATERIALIZED VIEW

Description

This statement is used to modify asynchronous materialized views.

syntax

  1. ALTER MATERIALIZED VIEW mvName=multipartIdentifier ((RENAME newName=identifier)
  2. | (REFRESH (refreshMethod | refreshTrigger | refreshMethod refreshTrigger))
  3. | (SET LEFT_PAREN fileProperties=propertyItemList RIGHT_PAREN))

illustrate

RENAME

Used to change the name of the materialized view

For example, changing the name of mv1 to mv2

  1. ALTER MATERIALIZED VIEW mv1 rename mv2;
refreshMethod

Same as creating asynchronous materialized views

refreshTrigger

Same as creating asynchronous materialized views

SET

Modify properties unique to materialized views

For example, modifying the grace_period of mv1 to 3000ms

  1. ALTER MATERIALIZED VIEW mv1 set("grace_period"="3000");

Keywords

  1. ALTER, ASYNC, MATERIALIZED, VIEW