mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Translate zh/sql-reference/statements/alter/view: translate to zh
This commit is contained in:
parent
d19431396d
commit
e96bbb2bcc
@ -3,13 +3,13 @@ toc_priority: 50
|
||||
toc_title: VIEW
|
||||
---
|
||||
|
||||
# ALTER TABLE … MODIFY QUERY Statement {#alter-modify-query}
|
||||
# ALTER TABLE … MODIFY QUERY 语句 {#alter-modify-query}
|
||||
|
||||
You can modify `SELECT` query that was specified when a [materialized view](../create/view.md#materialized) was created with the `ALTER TABLE … MODIFY QUERY` statement. Use it when the materialized view was created without the `TO [db.]name` clause. The `allow_experimental_alter_materialized_view_structure` setting must be enabled.
|
||||
当使用`ALTER TABLE … MODIFY QUERY`语句创建一个[物化视图](../create/view.md#materialized)时,可以修改`SELECT`查询。当物化视图在没有 `TO [db.]name` 的情况下创建时使用它。必须启用 `allow_experimental_alter_materialized_view_structure`设置。
|
||||
|
||||
If a materialized view uses the `TO [db.]name` construction, you must [DETACH](../detach.md) the view, run [ALTER TABLE](index.md) query for the target table, and then [ATTACH](../attach.md) the previously detached (`DETACH`) view.
|
||||
如果一个物化视图使用`TO [db.]name`,你必须先 [DETACH](../detach.md) 视图。用[ALTER TABLE](index.md)修改目标表,然后 [ATTACH](../attach.md)之前分离的(`DETACH`)视图。
|
||||
|
||||
**Example**
|
||||
**示例**
|
||||
|
||||
```sql
|
||||
CREATE TABLE src_table (`a` UInt32) ENGINE = MergeTree ORDER BY a;
|
||||
@ -39,6 +39,6 @@ SELECT * FROM mv;
|
||||
└───┘
|
||||
```
|
||||
|
||||
## ALTER LIVE VIEW Statement {#alter-live-view}
|
||||
## ALTER LIVE VIEW 语句 {#alter-live-view}
|
||||
|
||||
`ALTER LIVE VIEW ... REFRESH` statement refreshes a [Live view](../create/view.md#live-view). See [Force Live View Refresh](../create/view.md#live-view-alter-refresh).
|
||||
`ALTER LIVE VIEW ... REFRESH` 语句刷新一个 [实时视图](../create/view.md#live-view). 参见 [强制实时视图刷新](../create/view.md#live-view-alter-refresh).
|
||||
|
Loading…
Reference in New Issue
Block a user