This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 624b975  [IOTDB-1243]update DML delete grammar doc (#3507)
624b975 is described below

commit 624b975b484ce37baec561296749039fddebe0b5
Author: Hang Ji <[email protected]>
AuthorDate: Mon Jul 5 14:18:38 2021 +0800

    [IOTDB-1243]update DML delete grammar doc (#3507)
---
 docs/UserGuide/IoTDB-SQL-Language/DML-Data-Manipulation-Language.md  | 5 ++---
 .../UserGuide/IoTDB-SQL-Language/DML-Data-Manipulation-Language.md   | 4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git 
a/docs/UserGuide/IoTDB-SQL-Language/DML-Data-Manipulation-Language.md 
b/docs/UserGuide/IoTDB-SQL-Language/DML-Data-Manipulation-Language.md
index c9aa8ff..1d3c376 100644
--- a/docs/UserGuide/IoTDB-SQL-Language/DML-Data-Manipulation-Language.md
+++ b/docs/UserGuide/IoTDB-SQL-Language/DML-Data-Manipulation-Language.md
@@ -1562,11 +1562,10 @@ or
 ```
 delete from root.ln.wf02.wt02.* where time <= 2017-11-01T16:26:00;
 ```
-It should be noted that when the deleted path does not exist, IoTDB will give 
the corresponding error prompt as shown below:
-
+It should be noted that when the deleted path does not exist, IoTDB will not 
prompt that the path does not exist, but that the execution is successful, 
because SQL is a declarative programming method. Unless it is a syntax error, 
insufficient permissions and so on, it is not considered an error, as shown 
below:
 ```
 IoTDB> delete from root.ln.wf03.wt02.status where time < now()
-Msg: TimeSeries does not exist and its data cannot be deleted
+Msg: The statement is executed successfully.
 ```
 
 ### Delete Time Partition (experimental)
diff --git 
a/docs/zh/UserGuide/IoTDB-SQL-Language/DML-Data-Manipulation-Language.md 
b/docs/zh/UserGuide/IoTDB-SQL-Language/DML-Data-Manipulation-Language.md
index e24d511..48447d9 100644
--- a/docs/zh/UserGuide/IoTDB-SQL-Language/DML-Data-Manipulation-Language.md
+++ b/docs/zh/UserGuide/IoTDB-SQL-Language/DML-Data-Manipulation-Language.md
@@ -1551,11 +1551,11 @@ delete from root.ln.wf02.wt02 where time <= 
2017-11-01T16:26:00;
 delete from root.ln.wf02.wt02.* where time <= 2017-11-01T16:26:00;
 ```
 
-需要注意的是,当删除的路径不存在时,IoTDB会提示路径不存在,无法删除数据,如下所示。
+需要注意的是,当删除的路径不存在时,IoTDB不会提示路径不存在,而是显示执行成功,因为SQL是一种声明式的编程方式,除非是语法错误、权限不足等,否则都不认为是错误,如下所示。
 
 ```
 IoTDB> delete from root.ln.wf03.wt02.status where time < now()
-Msg: TimeSeries does not exist and its data cannot be deleted
+Msg: The statement is executed successfully.
 ```
 
 ### 删除时间分区 (实验性功能)

Reply via email to