This is an automated email from the ASF dual-hosted git repository.
HTHou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-docs.git
The following commit(s) were added to refs/heads/main by this push:
new 7ce3c3f3 param db is not requied in import sql from 2091 (#1095)
7ce3c3f3 is described below
commit 7ce3c3f34c873cc1f4a4ebfd1dee70f9bdcb2d78
Author: leto-b <[email protected]>
AuthorDate: Fri May 15 09:56:04 2026 +0800
param db is not requied in import sql from 2091 (#1095)
---
src/UserGuide/Master/Table/Tools-System/Data-Import-Tool_apache.md | 2 +-
src/UserGuide/Master/Table/Tools-System/Data-Import-Tool_timecho.md | 2 +-
src/UserGuide/latest-Table/Tools-System/Data-Import-Tool_apache.md | 2 +-
src/UserGuide/latest-Table/Tools-System/Data-Import-Tool_timecho.md | 3 ++-
src/zh/UserGuide/Master/Table/Tools-System/Data-Import-Tool_apache.md | 2 +-
src/zh/UserGuide/Master/Table/Tools-System/Data-Import-Tool_timecho.md | 3 ++-
src/zh/UserGuide/latest-Table/Tools-System/Data-Import-Tool_apache.md | 2 +-
src/zh/UserGuide/latest-Table/Tools-System/Data-Import-Tool_timecho.md | 2 +-
8 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/UserGuide/Master/Table/Tools-System/Data-Import-Tool_apache.md
b/src/UserGuide/Master/Table/Tools-System/Data-Import-Tool_apache.md
index 348ec4d0..2f288a7e 100644
--- a/src/UserGuide/Master/Table/Tools-System/Data-Import-Tool_apache.md
+++ b/src/UserGuide/Master/Table/Tools-System/Data-Import-Tool_apache.md
@@ -49,7 +49,7 @@ IoTDB supports three methods for data import:
| `-u` | `--username` | Username.
| No
| `root` |
| `-pw` | `--password` | Password. Supported for hidden
input since V2.0.9-beta
| No | `root` |
| `-sql_dialect` | `--sql_dialect` | Select server model : tree or
table
| No
| `tree` |
-| ` -db ` | `--database` | Target database , applies only
to `-sql_dialect=table`
|Yes when
`-sql_dialect = table` | - |
+| ` -db ` | `--database` | Target database , applies only
to `-sql_dialect=table`
|Yes when
`-sql_dialect = table`;<br>Starting from version V2.0.9-beta, this parameter is
optional when the file format is SQL. A prompt will be issued if the target
database is not explicitly specified in either the parameter or the SQL
statement. | - [...]
| `-table` | `--table ` | Target table , required for CSV
imports in table model
| No | -
|
| `-s` | `--source` | Local path to the file/directory
to import. **Supported formats**: CSV, SQL, TsFile. Unsupported formats
trigger error: `The file name must end with "csv", "sql", or "tsfile"!` |
**Yes** | - |
| `-tn` | `--thread_num` | Maximum parallel threads
| No
| `8` <br> Range: 0 to Integer.Max(2147483647). |
diff --git
a/src/UserGuide/Master/Table/Tools-System/Data-Import-Tool_timecho.md
b/src/UserGuide/Master/Table/Tools-System/Data-Import-Tool_timecho.md
index 7c18a1e5..3e0c7f18 100644
--- a/src/UserGuide/Master/Table/Tools-System/Data-Import-Tool_timecho.md
+++ b/src/UserGuide/Master/Table/Tools-System/Data-Import-Tool_timecho.md
@@ -50,7 +50,7 @@ IoTDB supports three methods for data import:
| `-u` | `--username` | Username.
| No
| `root` |
| `-pw` | `--password` | Password. Supported for
hidden input since V2.0.9.1
| No |
`TimechoDB@2021`(Before V2.0.6 it is root) |
| `-sql_dialect` | `--sql_dialect` | Select server model : tree or
table
| No
| `tree` |
-| ` -db ` | `--database` | Target database , applies
only to `-sql_dialect=table`
|Yes
when `-sql_dialect = table` | - |
+| ` -db ` | `--database` | Target database , applies
only to `-sql_dialect=table`
|Yes
when `-sql_dialect = table`;<br>Starting from version V2.0.9.2, this parameter
is optional when the file format is SQL. A prompt will be issued if the target
database is not explicitly specified in either the parameter or the SQL
statement. | - [...]
| `-table` | `--table ` | Target table , required for
CSV imports in table model
| No |
- |
| `-s` | `--source` | Local path to the
file/directory to import. **Supported formats**: CSV, SQL, TsFile.
Unsupported formats trigger error: `The file name must end with "csv", "sql",
or "tsfile"!` | **Yes** | - |
| `-tn` | `--thread_num` | Maximum parallel threads
| No
| `8` <br> Range: 0 to Integer.Max(2147483647). |
diff --git a/src/UserGuide/latest-Table/Tools-System/Data-Import-Tool_apache.md
b/src/UserGuide/latest-Table/Tools-System/Data-Import-Tool_apache.md
index 348ec4d0..2f288a7e 100644
--- a/src/UserGuide/latest-Table/Tools-System/Data-Import-Tool_apache.md
+++ b/src/UserGuide/latest-Table/Tools-System/Data-Import-Tool_apache.md
@@ -49,7 +49,7 @@ IoTDB supports three methods for data import:
| `-u` | `--username` | Username.
| No
| `root` |
| `-pw` | `--password` | Password. Supported for hidden
input since V2.0.9-beta
| No | `root` |
| `-sql_dialect` | `--sql_dialect` | Select server model : tree or
table
| No
| `tree` |
-| ` -db ` | `--database` | Target database , applies only
to `-sql_dialect=table`
|Yes when
`-sql_dialect = table` | - |
+| ` -db ` | `--database` | Target database , applies only
to `-sql_dialect=table`
|Yes when
`-sql_dialect = table`;<br>Starting from version V2.0.9-beta, this parameter is
optional when the file format is SQL. A prompt will be issued if the target
database is not explicitly specified in either the parameter or the SQL
statement. | - [...]
| `-table` | `--table ` | Target table , required for CSV
imports in table model
| No | -
|
| `-s` | `--source` | Local path to the file/directory
to import. **Supported formats**: CSV, SQL, TsFile. Unsupported formats
trigger error: `The file name must end with "csv", "sql", or "tsfile"!` |
**Yes** | - |
| `-tn` | `--thread_num` | Maximum parallel threads
| No
| `8` <br> Range: 0 to Integer.Max(2147483647). |
diff --git
a/src/UserGuide/latest-Table/Tools-System/Data-Import-Tool_timecho.md
b/src/UserGuide/latest-Table/Tools-System/Data-Import-Tool_timecho.md
index 6f826310..3069f606 100644
--- a/src/UserGuide/latest-Table/Tools-System/Data-Import-Tool_timecho.md
+++ b/src/UserGuide/latest-Table/Tools-System/Data-Import-Tool_timecho.md
@@ -50,7 +50,7 @@ IoTDB supports three methods for data import:
| `-u` | `--username` | Username.
| No
| `root` |
| `-pw` | `--password` | Password. Supported for
hidden input since V2.0.9.1
| No |
`TimechoDB@2021`(Before V2.0.6 it is root) |
| `-sql_dialect` | `--sql_dialect` | Select server model : tree or
table
| No
| `tree` |
-| ` -db ` | `--database` | Target database , applies
only to `-sql_dialect=table`
|Yes
when `-sql_dialect = table` | - |
+| ` -db ` | `--database` | Target database , applies
only to `-sql_dialect=table`
|Yes
when `-sql_dialect = table`;<br>Starting from version V2.0.9.2, this parameter
is optional when the file format is SQL. A prompt will be issued if the target
database is not explicitly specified in either the parameter or the SQL
statement. | - [...]
| `-table` | `--table ` | Target table , required for
CSV imports in table model
| No |
- |
| `-s` | `--source` | Local path to the
file/directory to import. **Supported formats**: CSV, SQL, TsFile.
Unsupported formats trigger error: `The file name must end with "csv", "sql",
or "tsfile"!` | **Yes** | - |
| `-tn` | `--thread_num` | Maximum parallel threads
| No
| `8` <br> Range: 0 to Integer.Max(2147483647). |
@@ -60,6 +60,7 @@ IoTDB supports three methods for data import:
| `-ts` | `--trust_store` | Trust store. Supports hidden
input. Supported since V2.0.9.1
| No
| - |
| `-tpw` | `--trust_store_password` | Trust store password. Supports
hidden input. Supported since V2.0.9.1
| No
| - |
+
### 2.2 CSV Format
#### 2.2.1 Command
diff --git
a/src/zh/UserGuide/Master/Table/Tools-System/Data-Import-Tool_apache.md
b/src/zh/UserGuide/Master/Table/Tools-System/Data-Import-Tool_apache.md
index 3414f425..48bd3a56 100644
--- a/src/zh/UserGuide/Master/Table/Tools-System/Data-Import-Tool_apache.md
+++ b/src/zh/UserGuide/Master/Table/Tools-System/Data-Import-Tool_apache.md
@@ -52,7 +52,7 @@ IoTDB 支持三种方式进行数据导入:
| -pw | --password | 密码,自 V2.0.9-beta 起支持隐藏输入
| 否 | root |
| -s | --source | 待加载的脚本文件(夹)的本地目录路径<br>如果为 csv sql
tsfile 这三个支持的格式,直接导入<br>不支持的格式,报错提示`The file name must end with "csv" or
"sql"or "tsfile"!` | √ |
| -sql_dialect | --sql_dialect | 选择 server 是树模型还是表模型,当前支持 tree 和
table 类型
| 否 | tree |
-| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table
类型下生效。
|-sql_dialect 为 table 时必填 | - |
+| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table
类型下生效。
|-sql_dialect 为 table 时必填;<br>V2.0.9-beta 版本起,当文件格式为 SQL
时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - |
| -table | --table | 数据将要导入的目标表,只在 `-sql_dialect` 为 table
类型且文件类型为 csv 条件下生效且必填。
| 否 | - |
| -tn | --thread\_num | 最大并行线程数
| 否 | 8<br>范围:0~Integer.Max=2147483647 |
| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00`
| 否 | 本机系统时间 |
diff --git
a/src/zh/UserGuide/Master/Table/Tools-System/Data-Import-Tool_timecho.md
b/src/zh/UserGuide/Master/Table/Tools-System/Data-Import-Tool_timecho.md
index 6341f064..89fdb59f 100644
--- a/src/zh/UserGuide/Master/Table/Tools-System/Data-Import-Tool_timecho.md
+++ b/src/zh/UserGuide/Master/Table/Tools-System/Data-Import-Tool_timecho.md
@@ -53,7 +53,7 @@ IoTDB 支持三种方式进行数据导入:
| -pw | --password | 密码,自 V2.0.9.1 起支持隐藏输入
| 否 | TimechoDB@2021 (V2.0.6 版本之前为 root) |
| -s | --source | 待加载的脚本文件(夹)的本地目录路径<br>如果为 csv sql
tsfile 这三个支持的格式,直接导入<br>不支持的格式,报错提示`The file name must end with "csv" or
"sql"or "tsfile"!` | √ |
| -sql_dialect | --sql_dialect | 选择 server 是树模型还是表模型,当前支持 tree 和
table 类型
| 否 | tree |
-| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为
table 类型下生效。
|-sql_dialect 为 table 时必填 | - |
+| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为
table 类型下生效。
|-sql_dialect 为 table 时必填;<br>V2.0.9.2 版本起,当文件格式为 SQL
时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - |
| -table | --table | 数据将要导入的目标表,只在 `-sql_dialect` 为
table 类型且文件类型为 csv 条件下生效且必填。
| 否 | - |
| -tn | --thread\_num | 最大并行线程数
| 否 | 8<br>范围:0~Integer.Max=2147483647 |
| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00`
| 否 | 本机系统时间 |
@@ -63,6 +63,7 @@ IoTDB 支持三种方式进行数据导入:
| -tpw | --trust_store_password | 信任库密码。支持隐藏输入,自 V2.0.9.1 起支持
| 否 | - |
+
### 2.2 CSV 格式
#### 2.2.1 运行命令
diff --git
a/src/zh/UserGuide/latest-Table/Tools-System/Data-Import-Tool_apache.md
b/src/zh/UserGuide/latest-Table/Tools-System/Data-Import-Tool_apache.md
index 3414f425..48bd3a56 100644
--- a/src/zh/UserGuide/latest-Table/Tools-System/Data-Import-Tool_apache.md
+++ b/src/zh/UserGuide/latest-Table/Tools-System/Data-Import-Tool_apache.md
@@ -52,7 +52,7 @@ IoTDB 支持三种方式进行数据导入:
| -pw | --password | 密码,自 V2.0.9-beta 起支持隐藏输入
| 否 | root |
| -s | --source | 待加载的脚本文件(夹)的本地目录路径<br>如果为 csv sql
tsfile 这三个支持的格式,直接导入<br>不支持的格式,报错提示`The file name must end with "csv" or
"sql"or "tsfile"!` | √ |
| -sql_dialect | --sql_dialect | 选择 server 是树模型还是表模型,当前支持 tree 和
table 类型
| 否 | tree |
-| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table
类型下生效。
|-sql_dialect 为 table 时必填 | - |
+| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table
类型下生效。
|-sql_dialect 为 table 时必填;<br>V2.0.9-beta 版本起,当文件格式为 SQL
时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - |
| -table | --table | 数据将要导入的目标表,只在 `-sql_dialect` 为 table
类型且文件类型为 csv 条件下生效且必填。
| 否 | - |
| -tn | --thread\_num | 最大并行线程数
| 否 | 8<br>范围:0~Integer.Max=2147483647 |
| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00`
| 否 | 本机系统时间 |
diff --git
a/src/zh/UserGuide/latest-Table/Tools-System/Data-Import-Tool_timecho.md
b/src/zh/UserGuide/latest-Table/Tools-System/Data-Import-Tool_timecho.md
index 6341f064..e84b56cb 100644
--- a/src/zh/UserGuide/latest-Table/Tools-System/Data-Import-Tool_timecho.md
+++ b/src/zh/UserGuide/latest-Table/Tools-System/Data-Import-Tool_timecho.md
@@ -53,7 +53,7 @@ IoTDB 支持三种方式进行数据导入:
| -pw | --password | 密码,自 V2.0.9.1 起支持隐藏输入
| 否 | TimechoDB@2021 (V2.0.6 版本之前为 root) |
| -s | --source | 待加载的脚本文件(夹)的本地目录路径<br>如果为 csv sql
tsfile 这三个支持的格式,直接导入<br>不支持的格式,报错提示`The file name must end with "csv" or
"sql"or "tsfile"!` | √ |
| -sql_dialect | --sql_dialect | 选择 server 是树模型还是表模型,当前支持 tree 和
table 类型
| 否 | tree |
-| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为
table 类型下生效。
|-sql_dialect 为 table 时必填 | - |
+| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为
table 类型下生效。
|-sql_dialect 为 table 时必填;<br>V2.0.9.2 版本起,当文件格式为 SQL
时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - |
| -table | --table | 数据将要导入的目标表,只在 `-sql_dialect` 为
table 类型且文件类型为 csv 条件下生效且必填。
| 否 | - |
| -tn | --thread\_num | 最大并行线程数
| 否 | 8<br>范围:0~Integer.Max=2147483647 |
| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00`
| 否 | 本机系统时间 |