diff --git a/src/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_apache.md b/src/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_apache.md index 10cf8b1ca..c355a23fd 100644 --- a/src/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_apache.md +++ b/src/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_apache.md @@ -36,13 +36,20 @@ We can thus create two databases using the above two SQL statements. It is worth noting that 1 database is recommended. -When the path itself or the parent/child layer of the path is already created as database, the path is then not allowed to be created as database. For example, it is not feasible to create `root.ln.wf01` as database when two databases `root.ln` and `root.sgcc` exist. The system gives the corresponding error prompt as shown below: +When the path itself or the parent/child layer of the path is already created as database, the path is then not allowed to be created as database. + +For example, when the databases root.ln and root.sgcc already exist, creating the database root.ln.wf01 is not allowed. The system will return the corresponding error message as shown below: ```sql CREATE DATABASE root.ln.wf01; -Msg: 300: root.ln has already been created as database; -create database root.ln.wf01; -Msg: 300: root.ln has already been created as database; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 501: root.ln has already been created as a database +``` + +Similarly, when the database root.db.test already exists, creating the database root.db is not allowed either. The system will return the corresponding error message as shown below: + +```sql +CREATE DATABASE root.db; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 529: Some children of root.db have already been created as datab ``` Database Node Naming Rules: diff --git a/src/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_timecho.md b/src/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_timecho.md index 87397ab9b..a649aed80 100644 --- a/src/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_timecho.md +++ b/src/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_timecho.md @@ -36,13 +36,20 @@ We can thus create two databases using the above two SQL statements. It is worth noting that 1 database is recommended. -When the path itself or the parent/child layer of the path is already created as database, the path is then not allowed to be created as database. For example, it is not feasible to create `root.ln.wf01` as database when two databases `root.ln` and `root.sgcc` exist. The system gives the corresponding error prompt as shown below: +When the path itself or the parent/child layer of the path is already created as database, the path is then not allowed to be created as database. + +For example, when the databases root.ln and root.sgcc already exist, creating the database root.ln.wf01 is not allowed. The system will return the corresponding error message as shown below: ```sql CREATE DATABASE root.ln.wf01; -Msg: 300: root.ln has already been created as database; -create database root.ln.wf01; -Msg: 300: root.ln has already been created as database; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 501: root.ln has already been created as a database +``` + +Similarly, when the database root.db.test already exists, creating the database root.db is not allowed either. The system will return the corresponding error message as shown below: + +```sql +CREATE DATABASE root.db; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 529: Some children of root.db have already been created as datab ``` Database Node Naming Rules: diff --git a/src/UserGuide/latest/Basic-Concept/Operate-Metadata_apache.md b/src/UserGuide/latest/Basic-Concept/Operate-Metadata_apache.md index 10cf8b1ca..c355a23fd 100644 --- a/src/UserGuide/latest/Basic-Concept/Operate-Metadata_apache.md +++ b/src/UserGuide/latest/Basic-Concept/Operate-Metadata_apache.md @@ -36,13 +36,20 @@ We can thus create two databases using the above two SQL statements. It is worth noting that 1 database is recommended. -When the path itself or the parent/child layer of the path is already created as database, the path is then not allowed to be created as database. For example, it is not feasible to create `root.ln.wf01` as database when two databases `root.ln` and `root.sgcc` exist. The system gives the corresponding error prompt as shown below: +When the path itself or the parent/child layer of the path is already created as database, the path is then not allowed to be created as database. + +For example, when the databases root.ln and root.sgcc already exist, creating the database root.ln.wf01 is not allowed. The system will return the corresponding error message as shown below: ```sql CREATE DATABASE root.ln.wf01; -Msg: 300: root.ln has already been created as database; -create database root.ln.wf01; -Msg: 300: root.ln has already been created as database; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 501: root.ln has already been created as a database +``` + +Similarly, when the database root.db.test already exists, creating the database root.db is not allowed either. The system will return the corresponding error message as shown below: + +```sql +CREATE DATABASE root.db; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 529: Some children of root.db have already been created as datab ``` Database Node Naming Rules: diff --git a/src/UserGuide/latest/Basic-Concept/Operate-Metadata_timecho.md b/src/UserGuide/latest/Basic-Concept/Operate-Metadata_timecho.md index 87397ab9b..a649aed80 100644 --- a/src/UserGuide/latest/Basic-Concept/Operate-Metadata_timecho.md +++ b/src/UserGuide/latest/Basic-Concept/Operate-Metadata_timecho.md @@ -36,13 +36,20 @@ We can thus create two databases using the above two SQL statements. It is worth noting that 1 database is recommended. -When the path itself or the parent/child layer of the path is already created as database, the path is then not allowed to be created as database. For example, it is not feasible to create `root.ln.wf01` as database when two databases `root.ln` and `root.sgcc` exist. The system gives the corresponding error prompt as shown below: +When the path itself or the parent/child layer of the path is already created as database, the path is then not allowed to be created as database. + +For example, when the databases root.ln and root.sgcc already exist, creating the database root.ln.wf01 is not allowed. The system will return the corresponding error message as shown below: ```sql CREATE DATABASE root.ln.wf01; -Msg: 300: root.ln has already been created as database; -create database root.ln.wf01; -Msg: 300: root.ln has already been created as database; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 501: root.ln has already been created as a database +``` + +Similarly, when the database root.db.test already exists, creating the database root.db is not allowed either. The system will return the corresponding error message as shown below: + +```sql +CREATE DATABASE root.db; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 529: Some children of root.db have already been created as datab ``` Database Node Naming Rules: diff --git a/src/zh/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_apache.md b/src/zh/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_apache.md index 720669e64..319b6e4a6 100644 --- a/src/zh/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_apache.md +++ b/src/zh/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_apache.md @@ -35,12 +35,21 @@ CREATE DATABASE root.ln; 需要注意的是,推荐创建一个 database. -Database 的父子节点都不能再设置 database。例如在已经有`root.ln`和`root.sgcc`这两个 database 的情况下,创建`root.ln.wf01` database 是不可行的。系统将给出相应的错误提示,如下所示: +Database 的父子节点都不能再设置 database。 + +例如在已经有`root.ln`和`root.sgcc`这两个 database 的情况下,创建`root.ln.wf01` database 是不可行的。系统将给出相应的错误提示,如下所示: ```sql CREATE DATABASE root.ln.wf01; -Msg: 300: root.ln has already been created as database. +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 501: root.ln has already been created as database ``` +同样,在已经有 `root.db.test` 这个 database 的情况下,创建 `root.db` database 也是不可行的。系统也会给出相应的错误提示,如下所示: + +```sql +CREATE DATABASE root.db; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 529: some children of root.db have already been created as database +``` + Database 节点名命名规则: 1. 节点名可由**中英文字符、数字、下划线(\_)、英文句号(.)、反引号(\`)** 组成 2. 若节点名为以下情况,则必须用**反引号(\`)** 将整个名称包裹。 diff --git a/src/zh/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_timecho.md b/src/zh/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_timecho.md index b0dc59933..4a3ecff9a 100644 --- a/src/zh/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_timecho.md +++ b/src/zh/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_timecho.md @@ -35,12 +35,21 @@ CREATE DATABASE root.ln; 需要注意的是,推荐创建一个 database. -Database 的父子节点都不能再设置 database。例如在已经有`root.ln`和`root.sgcc`这两个 database 的情况下,创建`root.ln.wf01` database 是不可行的。系统将给出相应的错误提示,如下所示: +Database 的父子节点都不能再设置 database。 + +例如在已经有`root.ln`和`root.sgcc`这两个 database 的情况下,创建`root.ln.wf01` database 是不可行的。系统将给出相应的错误提示,如下所示: ```sql CREATE DATABASE root.ln.wf01; -Msg: 300: root.ln has already been created as database. +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 501: root.ln has already been created as database +``` +同样,在已经有 `root.db.test` 这个 database 的情况下,创建 `root.db` database 也是不可行的。系统也会给出相应的错误提示,如下所示: + +```sql +CREATE DATABASE root.db; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 529: some children of root.db have already been created as database ``` + Database 节点名命名规则: 1. 节点名可由**中英文字符、数字、下划线(\_)、英文句号(.)、反引号(\`)** 组成 2. 若节点名为以下情况,则必须用**反引号(\`)** 将整个名称包裹。 @@ -464,6 +473,7 @@ ALTER TIMESERIES RENAME TO ALTER TIMESERIES root.ln.wf01.wt01.temperature RENAME TO root.newln.newwf.newwt.temperature; ``` + ### 2.5 删除时间序列 我们可以使用`(DELETE | DROP) TimeSeries `语句来删除我们之前创建的时间序列。SQL 语句如下所示: diff --git a/src/zh/UserGuide/latest/Basic-Concept/Operate-Metadata_apache.md b/src/zh/UserGuide/latest/Basic-Concept/Operate-Metadata_apache.md index 720669e64..319b6e4a6 100644 --- a/src/zh/UserGuide/latest/Basic-Concept/Operate-Metadata_apache.md +++ b/src/zh/UserGuide/latest/Basic-Concept/Operate-Metadata_apache.md @@ -35,12 +35,21 @@ CREATE DATABASE root.ln; 需要注意的是,推荐创建一个 database. -Database 的父子节点都不能再设置 database。例如在已经有`root.ln`和`root.sgcc`这两个 database 的情况下,创建`root.ln.wf01` database 是不可行的。系统将给出相应的错误提示,如下所示: +Database 的父子节点都不能再设置 database。 + +例如在已经有`root.ln`和`root.sgcc`这两个 database 的情况下,创建`root.ln.wf01` database 是不可行的。系统将给出相应的错误提示,如下所示: ```sql CREATE DATABASE root.ln.wf01; -Msg: 300: root.ln has already been created as database. +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 501: root.ln has already been created as database ``` +同样,在已经有 `root.db.test` 这个 database 的情况下,创建 `root.db` database 也是不可行的。系统也会给出相应的错误提示,如下所示: + +```sql +CREATE DATABASE root.db; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 529: some children of root.db have already been created as database +``` + Database 节点名命名规则: 1. 节点名可由**中英文字符、数字、下划线(\_)、英文句号(.)、反引号(\`)** 组成 2. 若节点名为以下情况,则必须用**反引号(\`)** 将整个名称包裹。 diff --git a/src/zh/UserGuide/latest/Basic-Concept/Operate-Metadata_timecho.md b/src/zh/UserGuide/latest/Basic-Concept/Operate-Metadata_timecho.md index f42f3ff43..4a3ecff9a 100644 --- a/src/zh/UserGuide/latest/Basic-Concept/Operate-Metadata_timecho.md +++ b/src/zh/UserGuide/latest/Basic-Concept/Operate-Metadata_timecho.md @@ -35,12 +35,21 @@ CREATE DATABASE root.ln; 需要注意的是,推荐创建一个 database. -Database 的父子节点都不能再设置 database。例如在已经有`root.ln`和`root.sgcc`这两个 database 的情况下,创建`root.ln.wf01` database 是不可行的。系统将给出相应的错误提示,如下所示: +Database 的父子节点都不能再设置 database。 + +例如在已经有`root.ln`和`root.sgcc`这两个 database 的情况下,创建`root.ln.wf01` database 是不可行的。系统将给出相应的错误提示,如下所示: ```sql CREATE DATABASE root.ln.wf01; -Msg: 300: root.ln has already been created as database. +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 501: root.ln has already been created as database ``` +同样,在已经有 `root.db.test` 这个 database 的情况下,创建 `root.db` database 也是不可行的。系统也会给出相应的错误提示,如下所示: + +```sql +CREATE DATABASE root.db; +Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 529: some children of root.db have already been created as database +``` + Database 节点名命名规则: 1. 节点名可由**中英文字符、数字、下划线(\_)、英文句号(.)、反引号(\`)** 组成 2. 若节点名为以下情况,则必须用**反引号(\`)** 将整个名称包裹。