跳到主要内容
跳到主要内容

ALTER-ASYNC-MATERIALIZED-VIEW

ALTER-ASYNC-MATERIALIZED-VIEW

Name

ALTER ASYNC MATERIALIZED VIEW

Description

该语句用于修改异步物化视图。

语法

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

说明

RENAME

用来更改物化视图的名字

例如: 将mv1的名字改为mv2

ALTER MATERIALIZED VIEW mv1 rename mv2;
refreshMethod

创建异步物化视图

refreshTrigger

创建异步物化视图

SET

修改物化视图特有的property

例如修改mv1的grace_period为3000ms

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

Keywords

ALTER, ASYNC, MATERIALIZED, VIEW