Skip to content
Open
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
15 changes: 11 additions & 4 deletions src/UserGuide/Master/Tree/Basic-Concept/Operate-Metadata_apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
15 changes: 11 additions & 4 deletions src/UserGuide/latest/Basic-Concept/Operate-Metadata_apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
15 changes: 11 additions & 4 deletions src/UserGuide/latest/Basic-Concept/Operate-Metadata_timecho.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. 若节点名为以下情况,则必须用**反引号(\`)** 将整个名称包裹。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. 若节点名为以下情况,则必须用**反引号(\`)** 将整个名称包裹。
Expand Down Expand Up @@ -464,6 +473,7 @@ ALTER TIMESERIES <oldPath> RENAME TO <newPath>
ALTER TIMESERIES root.ln.wf01.wt01.temperature RENAME TO root.newln.newwf.newwt.temperature;
```


### 2.5 删除时间序列

我们可以使用`(DELETE | DROP) TimeSeries <PathPattern>`语句来删除我们之前创建的时间序列。SQL 语句如下所示:
Expand Down
13 changes: 11 additions & 2 deletions src/zh/UserGuide/latest/Basic-Concept/Operate-Metadata_apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. 若节点名为以下情况,则必须用**反引号(\`)** 将整个名称包裹。
Expand Down
13 changes: 11 additions & 2 deletions src/zh/UserGuide/latest/Basic-Concept/Operate-Metadata_timecho.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. 若节点名为以下情况,则必须用**反引号(\`)** 将整个名称包裹。
Expand Down