Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/UserGuide/Master/Tree/User-Manual/IoTDB-View_timecho.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ In addition, for aliased sequences, if the user wants to get information about t

### Modify Views

The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes/aliases, and deleting.
The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes, and deleting.

#### Modify view data source

Expand Down Expand Up @@ -415,9 +415,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
ALTER view root.turbine.d1.s1 DROP tag1, tag2
```

- Update insert aliases, tags and attributes
- Update insert tags and attributes

> If the alias, tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.
> If the tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.

```SQL
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)
Expand Down
6 changes: 3 additions & 3 deletions src/UserGuide/V2.0.1/Tree/User-Manual/IoTDB-View_timecho.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ In addition, for aliased sequences, if the user wants to get information about t

### Modify Views

The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes/aliases, and deleting.
The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes, and deleting.

#### Modify view data source

Expand Down Expand Up @@ -415,9 +415,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
ALTER view root.turbine.d1.s1 DROP tag1, tag2
```

- Update insert aliases, tags and attributes
- Update insert tags and attributes

> If the alias, tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.
> If the tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.

```SQL
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)
Expand Down
6 changes: 3 additions & 3 deletions src/UserGuide/latest/User-Manual/IoTDB-View_timecho.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ In addition, for aliased sequences, if the user wants to get information about t

### Modify Views

The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes/aliases, and deleting.
The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes, and deleting.

#### Modify view data source

Expand Down Expand Up @@ -415,9 +415,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
ALTER view root.turbine.d1.s1 DROP tag1, tag2
```

- Update insert aliases, tags and attributes
- Update insert tags and attributes

> If the alias, tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.
> If the tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.

```SQL
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,10 @@ WHERE temperature01 < temperature02

此外,对于别名序列,如果用户想要得到时间序列的tag、attributes等信息,则需要先查询视图列的映射,找到对应的时间序列,再向时间序列查询tag、attributes等信息。查询视图列的映射的方法将会在3.5部分说明。


### 视图修改

视图支持的修改操作包括:修改计算逻辑,修改标签/属性/别名,以及删除。
视图支持的修改操作包括:修改计算逻辑,修改标签/属性,以及删除。

#### 修改视图数据来源

Expand Down Expand Up @@ -415,9 +416,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
ALTER view root.turbine.d1.s1 DROP tag1, tag2
```

- 更新插入别名,标签和属性
- 更新插入标签和属性

> 如果该别名,标签或属性原来不存在,则插入,否则,用新值更新原来的旧值
> 如果该标签或属性原来不存在,则插入,否则,用新值更新原来的旧值

```SQL
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,10 @@ WHERE temperature01 < temperature02

此外,对于别名序列,如果用户想要得到时间序列的tag、attributes等信息,则需要先查询视图列的映射,找到对应的时间序列,再向时间序列查询tag、attributes等信息。查询视图列的映射的方法将会在3.5部分说明。


### 视图修改

视图支持的修改操作包括:修改计算逻辑,修改标签/属性/别名,以及删除。
视图支持的修改操作包括:修改计算逻辑,修改标签/属性,以及删除。

#### 修改视图数据来源

Expand Down Expand Up @@ -415,9 +416,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
ALTER view root.turbine.d1.s1 DROP tag1, tag2
```

- 更新插入别名,标签和属性
- 更新插入标签和属性

> 如果该别名,标签或属性原来不存在,则插入,否则,用新值更新原来的旧值
> 如果该标签或属性原来不存在,则插入,否则,用新值更新原来的旧值

```SQL
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)
Expand Down
6 changes: 3 additions & 3 deletions src/zh/UserGuide/latest/User-Manual/IoTDB-View_timecho.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ WHERE temperature01 < temperature02

### 视图修改

视图支持的修改操作包括:修改计算逻辑,修改标签/属性/别名,以及删除。
视图支持的修改操作包括:修改计算逻辑,修改标签/属性,以及删除。

#### 修改视图数据来源

Expand Down Expand Up @@ -415,9 +415,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
ALTER view root.turbine.d1.s1 DROP tag1, tag2
```

- 更新插入别名,标签和属性
- 更新插入标签和属性

> 如果该别名,标签或属性原来不存在,则插入,否则,用新值更新原来的旧值
> 如果该标签或属性原来不存在,则插入,否则,用新值更新原来的旧值

```SQL
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)
Expand Down
Loading