Skip to content

Commit 3b2815e

Browse files
authored
delete devices only can delete the data related (#793)
1 parent 9720edf commit 3b2815e

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

src/UserGuide/Master/Table/Basic-Concept/Delete-Data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ DELETE FROM table1 WHERE model_id = 'B'
9696

9797
## 2. Device Deletion
9898

99-
When a device is written to IoTDB, its metadata is retained even if data is deleted. To remove both the data and metadata of a device, you can use the `DELETE DEVICES` statement.
99+
The device deletion statement supports deleting all devices and their related data in the table.
100100

101101
### 2.1 Syntax Overview
102102

src/UserGuide/latest-Table/Basic-Concept/Delete-Data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ DELETE FROM table1 WHERE model_id = 'B'
9696

9797
## 2. Device Deletion
9898

99-
When a device is written to IoTDB, its metadata is retained even if data is deleted. To remove both the data and metadata of a device, you can use the `DELETE DEVICES` statement.
99+
The device deletion statement supports deleting all devices and their related data in the table.
100100

101101
### 2.1 Syntax Overview
102102

src/zh/UserGuide/Master/Table/Basic-Concept/Delete-Data.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121

2222
# 数据删除
2323

24-
## 1. 数据删除
24+
## 1. 数据删除
2525

2626
数据删除可以通过 delete 语句来完成,其中可以通过指定标签和时间的过滤条件来删除部分数据。
2727

28-
### 1.1 语法概览
28+
### 1.1 语法概览
2929

3030
```SQL
3131
DELETE FROM <TABLE_NAME> [WHERE_CLAUSE]?
@@ -55,7 +55,7 @@ ID_CONDITION:
5555
- 对于时间条件,支持 >、<、=、<=、>= 五种运算符。
5656
- 对于标签条件,目前仅支持 = 运算符。
5757

58-
### 1.2 示例
58+
### 1.2 示例
5959

6060
可以在[示例数据页面](../Reference/Sample-Data.md)中导入示例数据。可以使用这些数据来测试和执行示例中的SQL语句。
6161

@@ -92,19 +92,19 @@ DELETE FROM table1
9292
DELETE FROM table1 WHERE model_id = 'B'
9393
```
9494

95-
## 2. 设备删除
95+
## 2. 设备删除
9696

97-
当一个设备写入后,在 IoTDB 中即保留了其元数据,数据删除语句无法删除设备的元数据,可以使用设备删除语句删除设备的所有数据和元数据
97+
设备删除语句支持删除表里所有设备及相关数据
9898

99-
### 2.1 语法概览
99+
### 2.1 语法概览
100100

101101
```SQL
102102
DELETE DEVICES FROM tableName=qualifiedName (WHERE booleanExpression)?
103103
```
104104

105105
- WHERE 仅支持对标签的等值过滤,条件之间仅可使用 AND 和 OR 运算符连接,不支持时间条件。
106106

107-
### 2.2 示例
107+
### 2.2 示例
108108

109109
```SQL
110110
DELETE DEVICES FROM table1 WHERE device_id = '101'

src/zh/UserGuide/latest-Table/Basic-Concept/Delete-Data.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121

2222
# 数据删除
2323

24-
## 1. 数据删除
24+
## 1. 数据删除
2525

2626
数据删除可以通过 delete 语句来完成,其中可以通过指定标签和时间的过滤条件来删除部分数据。
2727

28-
### 1.1 语法概览
28+
### 1.1 语法概览
2929

3030
```SQL
3131
DELETE FROM <TABLE_NAME> [WHERE_CLAUSE]?
@@ -55,7 +55,7 @@ ID_CONDITION:
5555
- 对于时间条件,支持 >、<、=、<=、>= 五种运算符。
5656
- 对于标签条件,目前仅支持 = 运算符。
5757

58-
### 1.2 示例
58+
### 1.2 示例
5959

6060
可以在[示例数据页面](../Reference/Sample-Data.md)中导入示例数据。可以使用这些数据来测试和执行示例中的SQL语句。
6161

@@ -92,19 +92,19 @@ DELETE FROM table1
9292
DELETE FROM table1 WHERE model_id = 'B'
9393
```
9494

95-
## 2. 设备删除
95+
## 2. 设备删除
9696

97-
当一个设备写入后,在 IoTDB 中即保留了其元数据,数据删除语句无法删除设备的元数据,可以使用设备删除语句删除设备的所有数据和元数据
97+
设备删除语句支持删除表里所有设备及相关数据
9898

99-
### 2.1 语法概览
99+
### 2.1 语法概览
100100

101101
```SQL
102102
DELETE DEVICES FROM tableName=qualifiedName (WHERE booleanExpression)?
103103
```
104104

105105
- WHERE 仅支持对标签的等值过滤,条件之间仅可使用 AND 和 OR 运算符连接,不支持时间条件。
106106

107-
### 2.2 示例
107+
### 2.2 示例
108108

109109
```SQL
110110
DELETE DEVICES FROM table1 WHERE device_id = '101'

0 commit comments

Comments
 (0)