### 13.1.11 ALTER VIEW 语句

[](<>)

```
ALTER
    [ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}]
    [DEFINER = user]
    [SQL SECURITY { DEFINER | INVOKER }]
    VIEW view_name [(column_list)]
    AS select_statement
    [WITH [CASCADED | LOCAL] CHECK OPTION]
```

该语句更改了必须存在的视图的定义。语法类似于 for[`创建视图`](create-view.html)看[第 13.1.23 节，“CREATE VIEW 语句”](create-view.html)）。该声明要求[`创建视图`](privileges-provided.html#priv_create-view)和[`降低`](privileges-provided.html#priv_drop)视图的权限，以及在[`选择`](select.html)陈述。[`改变视图`](alter-view.html)仅允许定义者或具有[`SET_USER_ID`](privileges-provided.html#priv_set-user-id)特权（或已弃用的[`极好的`](privileges-provided.html#priv_super)特权）。
