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 60c28df51..51b5c78fe 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 @@ -41,22 +41,20 @@ IoTDB supports three methods for data import: ## 2. Data Import Tool ### 2.1 Common Parameters -| Short | Full Parameter | Description | Required | Default | -| ------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |---------------------------------------------| -| `-ft` | `--file_type` | File type: `csv`, `sql`, `tsfile`. | ​**Yes** | - | -| `-h` | `--host` | IoTDB server hostname. | No | `127.0.0.1` | -| `-p` | `--port` | IoTDB server port. | No | `6667` | -| `-u` | `--username` | Username. | No | `root` | -| `-pw` | `--password` | Password. | 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` | - | -|`-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`
Range: 0 to Integer.Max(2147483647). | -| `-tz` | `--timezone` | Timezone (e.g., `+08:00`, `-01:00`). | No | System default | -| `-help` | `--help` | Display help (general or format-specific: `-help csv`). | No | - | +| Short | Full Parameter | Description | Required | Default | +| ------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------| +| `-ft` | `--file_type` | File type: `csv`, `sql`, `tsfile`. | ​**Yes** | - | +| `-h` | `--host` | IoTDB server hostname. | No | `127.0.0.1` | +| `-p` | `--port` | IoTDB server port. | No | `6667` | +| `-u` | `--username` | Username. | No | `root` | +| `-pw` | `--password` | Password. | 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`;
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`
Range: 0 to Integer.Max(2147483647). | +| `-tz` | `--timezone` | Timezone (e.g., `+08:00`, `-01:00`). | No | System default | +| `-help` | `--help` | Display help (general or format-specific: `-help csv`). | No | - | ### 2.2 CSV Format 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 695d74d8f..01158ce00 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 @@ -42,22 +42,20 @@ IoTDB supports three methods for data import: ## 2. Data Import Tool ### 2.1 Common Parameters -| Short | Full Parameter | Description | Required | Default | -| ------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |-----------------------------------------------| -| `-ft` | `--file_type` | File type: `csv`, `sql`, `tsfile`. | ​**Yes** | - | -| `-h` | `--host` | IoTDB server hostname. | No | `127.0.0.1` | -| `-p` | `--port` | IoTDB server port. | No | `6667` | -| `-u` | `--username` | Username. | No | `root` | -| `-pw` | `--password` | Password. | 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` | - | -|`-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`
Range: 0 to Integer.Max(2147483647). | -| `-tz` | `--timezone` | Timezone (e.g., `+08:00`, `-01:00`). | No | System default | -| `-help` | `--help` | Display help (general or format-specific: `-help csv`). | No | - | +| Short | Full Parameter | Description | Required | Default | +| ------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------| +| `-ft` | `--file_type` | File type: `csv`, `sql`, `tsfile`. | ​**Yes** | - | +| `-h` | `--host` | IoTDB server hostname. | No | `127.0.0.1` | +| `-p` | `--port` | IoTDB server port. | No | `6667` | +| `-u` | `--username` | Username. | No | `root` | +| `-pw` | `--password` | Password. | 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`;
Starting from version V2.0.9.1, 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`
Range: 0 to Integer.Max(2147483647). | +| `-tz` | `--timezone` | Timezone (e.g., `+08:00`, `-01:00`). | No | System default | +| `-help` | `--help` | Display help (general or format-specific: `-help csv`). | No | - | ### 2.2 CSV Format 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 60c28df51..51b5c78fe 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 @@ -41,22 +41,20 @@ IoTDB supports three methods for data import: ## 2. Data Import Tool ### 2.1 Common Parameters -| Short | Full Parameter | Description | Required | Default | -| ------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |---------------------------------------------| -| `-ft` | `--file_type` | File type: `csv`, `sql`, `tsfile`. | ​**Yes** | - | -| `-h` | `--host` | IoTDB server hostname. | No | `127.0.0.1` | -| `-p` | `--port` | IoTDB server port. | No | `6667` | -| `-u` | `--username` | Username. | No | `root` | -| `-pw` | `--password` | Password. | 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` | - | -|`-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`
Range: 0 to Integer.Max(2147483647). | -| `-tz` | `--timezone` | Timezone (e.g., `+08:00`, `-01:00`). | No | System default | -| `-help` | `--help` | Display help (general or format-specific: `-help csv`). | No | - | +| Short | Full Parameter | Description | Required | Default | +| ------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------| +| `-ft` | `--file_type` | File type: `csv`, `sql`, `tsfile`. | ​**Yes** | - | +| `-h` | `--host` | IoTDB server hostname. | No | `127.0.0.1` | +| `-p` | `--port` | IoTDB server port. | No | `6667` | +| `-u` | `--username` | Username. | No | `root` | +| `-pw` | `--password` | Password. | 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`;
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`
Range: 0 to Integer.Max(2147483647). | +| `-tz` | `--timezone` | Timezone (e.g., `+08:00`, `-01:00`). | No | System default | +| `-help` | `--help` | Display help (general or format-specific: `-help csv`). | No | - | ### 2.2 CSV Format 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 695d74d8f..01158ce00 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 @@ -42,22 +42,20 @@ IoTDB supports three methods for data import: ## 2. Data Import Tool ### 2.1 Common Parameters -| Short | Full Parameter | Description | Required | Default | -| ------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |-----------------------------------------------| -| `-ft` | `--file_type` | File type: `csv`, `sql`, `tsfile`. | ​**Yes** | - | -| `-h` | `--host` | IoTDB server hostname. | No | `127.0.0.1` | -| `-p` | `--port` | IoTDB server port. | No | `6667` | -| `-u` | `--username` | Username. | No | `root` | -| `-pw` | `--password` | Password. | 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` | - | -|`-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`
Range: 0 to Integer.Max(2147483647). | -| `-tz` | `--timezone` | Timezone (e.g., `+08:00`, `-01:00`). | No | System default | -| `-help` | `--help` | Display help (general or format-specific: `-help csv`). | No | - | +| Short | Full Parameter | Description | Required | Default | +| ------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------| +| `-ft` | `--file_type` | File type: `csv`, `sql`, `tsfile`. | ​**Yes** | - | +| `-h` | `--host` | IoTDB server hostname. | No | `127.0.0.1` | +| `-p` | `--port` | IoTDB server port. | No | `6667` | +| `-u` | `--username` | Username. | No | `root` | +| `-pw` | `--password` | Password. | 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`;
Starting from version V2.0.9.1, 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`
Range: 0 to Integer.Max(2147483647). | +| `-tz` | `--timezone` | Timezone (e.g., `+08:00`, `-01:00`). | No | System default | +| `-help` | `--help` | Display help (general or format-specific: `-help csv`). | No | - | ### 2.2 CSV Format 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 57c7217f2..6aa4f6314 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 @@ -43,20 +43,20 @@ IoTDB 支持三种方式进行数据导入: ### 2.1 公共参数 -| 参数缩写 | 参数全称 | 参数含义 | 是否为必填项 | 默认值 | -| ---------- | --------------- |-----------------------------------------------------------------------------------------------------------------------------------------| -------------- |----------------------------------| -| -ft | --file\_type | 导入文件的类型,可以选择:csv、sql、tsfile | √ | -| -h | -- host | 主机名 | 否 | 127.0.0.1 | -| -p | --port | 端口号 | 否 | 6667 | -| -u | --username | 用户名 | 否 | root | -| -pw | --password | 密码 | 否 | root | -| -s | --source | 待加载的脚本文件(夹)的本地目录路径
如果为 csv sql tsfile 这三个支持的格式,直接导入
不支持的格式,报错提示`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 时必填 | - | -|-table |--table |数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 | 否 | - | -| -tn | --thread\_num | 最大并行线程数 | 否 | 8
范围:0~Integer.Max=2147483647 | -| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00` | 否 | 本机系统时间 | -| -help | --help | 显示帮助信息,支持分开展示和全部展示`-help`或`-help csv` | 否 | +| 参数缩写 | 参数全称 | 参数含义 | 是否为必填项 | 默认值 | +| ---------- | --------------- |-----------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|----------------------------------| +| -ft | --file\_type | 导入文件的类型,可以选择:csv、sql、tsfile | √ | +| -h | -- host | 主机名 | 否 | 127.0.0.1 | +| -p | --port | 端口号 | 否 | 6667 | +| -u | --username | 用户名 | 否 | root | +| -pw | --password | 密码 | 否 | root | +| -s | --source | 待加载的脚本文件(夹)的本地目录路径
如果为 csv sql tsfile 这三个支持的格式,直接导入
不支持的格式,报错提示`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 时必填;
V2.0.9-beta 版本起,当文件格式为 SQL 时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - | +|-table |--table |数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 | 否 | - | +| -tn | --thread\_num | 最大并行线程数 | 否 | 8
范围:0~Integer.Max=2147483647 | +| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00` | 否 | 本机系统时间 | +| -help | --help | 显示帮助信息,支持分开展示和全部展示`-help`或`-help csv` | 否 | ### 2.2 CSV 格式 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 6d2f6a69c..079b2afa0 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 @@ -44,20 +44,20 @@ IoTDB 支持三种方式进行数据导入: ### 2.1 公共参数 -| 参数缩写 | 参数全称 | 参数含义 | 是否为必填项 | 默认值 | -| ---------- | --------------- |-----------------------------------------------------------------------------------------------------------------------------------------| -------------- |-------------------------------------| -| -ft | --file\_type | 导入文件的类型,可以选择:csv、sql、tsfile | √ | -| -h | -- host | 主机名 | 否 | 127.0.0.1 | -| -p | --port | 端口号 | 否 | 6667 | -| -u | --username | 用户名 | 否 | root | -| -pw | --password | 密码 | 否 | TimechoDB@2021 (V2.0.6 版本之前为 root) | -| -s | --source | 待加载的脚本文件(夹)的本地目录路径
如果为 csv sql tsfile 这三个支持的格式,直接导入
不支持的格式,报错提示`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 时必填 | - | -|-table |--table |数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 | 否 | - | -| -tn | --thread\_num | 最大并行线程数 | 否 | 8
范围:0~Integer.Max=2147483647 | -| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00` | 否 | 本机系统时间 | -| -help | --help | 显示帮助信息,支持分开展示和全部展示`-help`或`-help csv` | 否 | +| 参数缩写 | 参数全称 | 参数含义 | 是否为必填项 | 默认值 | +| ---------- | --------------- |-----------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|-------------------------------------| +| -ft | --file\_type | 导入文件的类型,可以选择:csv、sql、tsfile | √ | +| -h | -- host | 主机名 | 否 | 127.0.0.1 | +| -p | --port | 端口号 | 否 | 6667 | +| -u | --username | 用户名 | 否 | root | +| -pw | --password | 密码 | 否 | TimechoDB@2021 (V2.0.6 版本之前为 root) | +| -s | --source | 待加载的脚本文件(夹)的本地目录路径
如果为 csv sql tsfile 这三个支持的格式,直接导入
不支持的格式,报错提示`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 时必填;
V2.0.9.1 版本起,当文件格式为 SQL 时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - | +|-table |--table |数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 | 否 | - | +| -tn | --thread\_num | 最大并行线程数 | 否 | 8
范围:0~Integer.Max=2147483647 | +| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00` | 否 | 本机系统时间 | +| -help | --help | 显示帮助信息,支持分开展示和全部展示`-help`或`-help csv` | 否 | ### 2.2 CSV 格式 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 57c7217f2..6aa4f6314 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 @@ -43,20 +43,20 @@ IoTDB 支持三种方式进行数据导入: ### 2.1 公共参数 -| 参数缩写 | 参数全称 | 参数含义 | 是否为必填项 | 默认值 | -| ---------- | --------------- |-----------------------------------------------------------------------------------------------------------------------------------------| -------------- |----------------------------------| -| -ft | --file\_type | 导入文件的类型,可以选择:csv、sql、tsfile | √ | -| -h | -- host | 主机名 | 否 | 127.0.0.1 | -| -p | --port | 端口号 | 否 | 6667 | -| -u | --username | 用户名 | 否 | root | -| -pw | --password | 密码 | 否 | root | -| -s | --source | 待加载的脚本文件(夹)的本地目录路径
如果为 csv sql tsfile 这三个支持的格式,直接导入
不支持的格式,报错提示`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 时必填 | - | -|-table |--table |数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 | 否 | - | -| -tn | --thread\_num | 最大并行线程数 | 否 | 8
范围:0~Integer.Max=2147483647 | -| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00` | 否 | 本机系统时间 | -| -help | --help | 显示帮助信息,支持分开展示和全部展示`-help`或`-help csv` | 否 | +| 参数缩写 | 参数全称 | 参数含义 | 是否为必填项 | 默认值 | +| ---------- | --------------- |-----------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|----------------------------------| +| -ft | --file\_type | 导入文件的类型,可以选择:csv、sql、tsfile | √ | +| -h | -- host | 主机名 | 否 | 127.0.0.1 | +| -p | --port | 端口号 | 否 | 6667 | +| -u | --username | 用户名 | 否 | root | +| -pw | --password | 密码 | 否 | root | +| -s | --source | 待加载的脚本文件(夹)的本地目录路径
如果为 csv sql tsfile 这三个支持的格式,直接导入
不支持的格式,报错提示`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 时必填;
V2.0.9-beta 版本起,当文件格式为 SQL 时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - | +|-table |--table |数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 | 否 | - | +| -tn | --thread\_num | 最大并行线程数 | 否 | 8
范围:0~Integer.Max=2147483647 | +| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00` | 否 | 本机系统时间 | +| -help | --help | 显示帮助信息,支持分开展示和全部展示`-help`或`-help csv` | 否 | ### 2.2 CSV 格式 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 6d2f6a69c..079b2afa0 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 @@ -44,20 +44,20 @@ IoTDB 支持三种方式进行数据导入: ### 2.1 公共参数 -| 参数缩写 | 参数全称 | 参数含义 | 是否为必填项 | 默认值 | -| ---------- | --------------- |-----------------------------------------------------------------------------------------------------------------------------------------| -------------- |-------------------------------------| -| -ft | --file\_type | 导入文件的类型,可以选择:csv、sql、tsfile | √ | -| -h | -- host | 主机名 | 否 | 127.0.0.1 | -| -p | --port | 端口号 | 否 | 6667 | -| -u | --username | 用户名 | 否 | root | -| -pw | --password | 密码 | 否 | TimechoDB@2021 (V2.0.6 版本之前为 root) | -| -s | --source | 待加载的脚本文件(夹)的本地目录路径
如果为 csv sql tsfile 这三个支持的格式,直接导入
不支持的格式,报错提示`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 时必填 | - | -|-table |--table |数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 | 否 | - | -| -tn | --thread\_num | 最大并行线程数 | 否 | 8
范围:0~Integer.Max=2147483647 | -| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00` | 否 | 本机系统时间 | -| -help | --help | 显示帮助信息,支持分开展示和全部展示`-help`或`-help csv` | 否 | +| 参数缩写 | 参数全称 | 参数含义 | 是否为必填项 | 默认值 | +| ---------- | --------------- |-----------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|-------------------------------------| +| -ft | --file\_type | 导入文件的类型,可以选择:csv、sql、tsfile | √ | +| -h | -- host | 主机名 | 否 | 127.0.0.1 | +| -p | --port | 端口号 | 否 | 6667 | +| -u | --username | 用户名 | 否 | root | +| -pw | --password | 密码 | 否 | TimechoDB@2021 (V2.0.6 版本之前为 root) | +| -s | --source | 待加载的脚本文件(夹)的本地目录路径
如果为 csv sql tsfile 这三个支持的格式,直接导入
不支持的格式,报错提示`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 时必填;
V2.0.9.1 版本起,当文件格式为 SQL 时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - | +|-table |--table |数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 | 否 | - | +| -tn | --thread\_num | 最大并行线程数 | 否 | 8
范围:0~Integer.Max=2147483647 | +| -tz | --timezone | 时区设置,例如`+08:00`或`-01:00` | 否 | 本机系统时间 | +| -help | --help | 显示帮助信息,支持分开展示和全部展示`-help`或`-help csv` | 否 | ### 2.2 CSV 格式