diff --git a/src/.vuepress/sidebar/V2.0.x/en-Table.ts b/src/.vuepress/sidebar/V2.0.x/en-Table.ts
index 2093e570e..9a84def91 100644
--- a/src/.vuepress/sidebar/V2.0.x/en-Table.ts
+++ b/src/.vuepress/sidebar/V2.0.x/en-Table.ts
@@ -112,6 +112,8 @@ export const enSidebar = {
{ text: 'Monitor Tool', link: 'Monitor-Tool_apache' },
{ text: 'Benchmark Tool', link: 'Benchmark' },
{ text: 'Cluster Management Tool', link: 'Maintenance-Tool_apache' },
+ { text: 'Data Import', link: 'Data-Import-Tool' },
+ { text: 'Data Export', link: 'Data-Export-Tool' },
],
},
{
diff --git a/src/.vuepress/sidebar/V2.0.x/zh-Table.ts b/src/.vuepress/sidebar/V2.0.x/zh-Table.ts
index aad81b998..1e50caa8d 100644
--- a/src/.vuepress/sidebar/V2.0.x/zh-Table.ts
+++ b/src/.vuepress/sidebar/V2.0.x/zh-Table.ts
@@ -104,6 +104,8 @@ export const zhSidebar = {
{ text: '命令行工具', link: 'CLI' },
{ text: '监控工具', link: 'Monitor-Tool_apache' },
{ text: '集群管理工具', link: 'Maintenance-Tool_apache' },
+ { text: '数据导入', link: 'Data-Import-Tool' },
+ { text: '数据导出', link: 'Data-Export-Tool' },
],
},
{
diff --git a/src/.vuepress/sidebar_timecho/V2.0.x/en-Table.ts b/src/.vuepress/sidebar_timecho/V2.0.x/en-Table.ts
index e34adcdf3..7e1b5d4c9 100644
--- a/src/.vuepress/sidebar_timecho/V2.0.x/en-Table.ts
+++ b/src/.vuepress/sidebar_timecho/V2.0.x/en-Table.ts
@@ -117,6 +117,8 @@ export const enSidebar = {
{ text: 'Monitor Tool', link: 'Monitor-Tool_timecho' },
{ text: 'Benchmark Tool', link: 'Benchmark' },
{ text: 'Cluster Management Tool', link: 'Maintenance-Tool_timecho' },
+ { text: 'Data Import', link: 'Data-Import-Tool' },
+ { text: 'Data Export', link: 'Data-Export-Tool' },
],
},
{
diff --git a/src/.vuepress/sidebar_timecho/V2.0.x/zh-Table.ts b/src/.vuepress/sidebar_timecho/V2.0.x/zh-Table.ts
index 058d1ba58..3e2345030 100644
--- a/src/.vuepress/sidebar_timecho/V2.0.x/zh-Table.ts
+++ b/src/.vuepress/sidebar_timecho/V2.0.x/zh-Table.ts
@@ -108,6 +108,8 @@ export const zhSidebar = {
{ text: '监控工具', link: 'Monitor-Tool_timecho' },
{ text: '测试工具', link: 'Benchmark' },
{ text: '集群管理工具', link: 'Maintenance-Tool_timecho' },
+ { text: '数据导入', link: 'Data-Import-Tool' },
+ { text: '数据导出', link: 'Data-Export-Tool' },
],
},
{
diff --git a/src/UserGuide/Master/Table/Tools-System/Data-Export-Tool.md b/src/UserGuide/Master/Table/Tools-System/Data-Export-Tool.md
new file mode 100644
index 000000000..1c564820c
--- /dev/null
+++ b/src/UserGuide/Master/Table/Tools-System/Data-Export-Tool.md
@@ -0,0 +1,146 @@
+# Data Export
+
+## 1. Function Overview
+The data export tool `export-data.sh/bat` is located in the `tools` directory and can export query results from specified SQL statements into CSV, SQL, or TsFile (open-source time-series file format) formats. Its specific functionalities are as follows:
+
+
+
+ File Format
+ IoTDB Tool
+ Description
+
+
+ CSV
+ export-data.sh/bat
+ Plain text format for storing structured data. Must follow the CSV format specified below.
+
+
+ SQL
+ File containing custom SQL statements.
+
+
+ TsFile
+ Open-source time-series file format.
+
+
+
+
+
+## 2. Detailed Features
+### 2.1 Common Parameters
+| Short | Full Parameter | Description | Required | Default |
+| ---------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------- |-----------------------------------------------|
+| `-ft` | `--file_type` | Export file type: `csv`, `sql`, `tsfile`. | **Yes** | - |
+| `-h` | `--host` | Hostname of the IoTDB server. | No | `127.0.0.1` |
+| `-p` | `--port` | Port number of the IoTDB server. | No | `6667` |
+| `-u` | `--username` | Username for authentication. | No | `root` |
+| `-pw` | `--password` | Password for authentication. | No | `root` |
+| `-sql_dialect` | `--sql_dialect` | Select server model : tree or table | No | tree |
+| `-db ` | `--database` | The target database to be exported only takes effect when `-sql_dialect` is of the table type.| Yes when `-sql_dialect = table`| -|
+| `-table`|`--table` | The target table to be exported only takes effect when `-sql_dialect` is of the table type. If the `-q` parameter is specified, this parameter will not take effect. If the export type is tsfile/sql, this parameter is mandatory.| No | - |
+| `-start_time` | `--start_time` |The start time of the data to be exported only takes effect when `-sql_dialect` is of the table type. If `-q` is specified, this parameter will not take effect. The supported time formats are the same as those for the `-tf` parameter.|No | - |
+|`-end_time` |`--end_time` | The end time of the data to be exported only takes effect when `-sql_dialect` is set to the table type. If `-q` is specified, this parameter will not take effect.| No | - |
+| `-t` | `--target` | Target directory for the output files. If the path does not exist, it will be created. | **Yes** | - |
+| `-pfn` | `--prefix_file_name` | Prefix for the exported file names. For example, `abc` will generate files like `abc_0.tsfile`, `abc_1.tsfile`. | No | `dump_0.tsfile` |
+| `-q` | `--query` | SQL query command to execute. | No | - |
+| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (Range: -1~Long max=9223372036854775807) |
+| `-help` | `--help` | Display help information. | No | - |
+
+### 2.2 CSV Format
+#### 2.2.1 Command
+
+```Shell
+# Unix/OS X
+> tools/export-data.sh -ft [-sql_dialect] -db -table
+ [-start_time] [-end_time] [-h ] [-p ] [-u ] [-pw ]
+ -t [-pfn ] [-dt ] [-lpf ] [-tf ]
+ [-tz ] [-q ] [-timeout ]
+# Windows
+> tools\export-data.bat -ft [-sql_dialect] -db -table
+ [-start_time] [-end_time] [-h ] [-p ] [-u ] [-pw ]
+ -t [-pfn ] [-dt ] [-lpf ] [-tf ]
+ [-tz ] [-q ] [-timeout ]
+```
+#### 2.2.2 CSV-Specific Parameters
+
+| Short | Full Parameter | Description | Required | Default |
+| ------------ | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |------------------------------------------|
+| `-dt` | `--datatype` | Whether to include data types in the CSV file header (`true` or `false`). | No | `false` |
+| `-lpf` | `--lines_per_file` | Number of rows per exported file. | No | `10000` (Range:0~Integer.Max=2147483647) |
+| `-tf` | `--time_format` | Time format for the CSV file. Options: 1) Timestamp (numeric, long), 2) ISO8601 (default), 3) Custom pattern (e.g., `yyyy-MM-dd HH:mm:ss`). SQL file timestamps are unaffected by this setting. | No | `ISO8601` |
+| `-tz` | `--timezone` | Timezone setting (e.g., `+08:00`, `-01:00`). | No | System default |
+
+#### 2.2.3 Examples
+
+```Shell
+# Valid Example
+> export-data.sh -ft csv -sql_dialect table -t /path/export/dir -db database1 -q "select * from table1"
+
+# Error Example
+> export-data.sh -ft csv -sql_dialect table -t /path/export/dir -q "select * from table1"
+Parse error: Missing required option: db
+```
+## 2.3 SQL Format
+#### 2.3.1 Command
+```Shell
+# Unix/OS X
+> tools/export-data.sh -ft [-sql_dialect] -db -table
+ [-start_time] [-end_time] [-h ] [-p ] [-u ] [-pw ]
+ -t [-pfn ] [-aligned ]
+ -lpf - [-tf ] [-tz ] [-q ] [-timeout ]
+
+# Windows
+> tools\export-data.bat -ft [-sql_dialect] -db -table
+ [-start_time] [-end_time] [-h -p -u -pw ]
+ -t [-pfn -aligned
+ -lpf -tf -tz -q -timeout ]
+```
+#### 2.3.2 SQL-Specific Parameters
+
+| Short | Full Parameter | Description | Required | Default |
+| ---------------- | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | ---------------- |
+| `-aligned` | `--use_aligned` | Whether to export as aligned SQL format (`true` or `false`). | No | `true` |
+| `-lpf` | `--lines_per_file` | Number of rows per exported file. | No | `10000` (Range:0~Integer.Max=2147483647) |
+| `-tf` | `--time_format` | Time format for the CSV file. Options: 1) Timestamp (numeric, long), 2) ISO8601 (default), 3) Custom pattern (e.g., `yyyy-MM-dd HH:mm:ss`). SQL file timestamps are unaffected by this setting. | No | `ISO8601` |
+| `-tz` | `--timezone` | Timezone setting (e.g., `+08:00`, `-01:00`). | No | System default |
+
+#### 2.3.3 Examples
+```Shell
+# Valid Example
+> export-data.sh -ft sql -sql_dialect table -t /path/export/dir -db database1 -start_time 1
+
+# Error Example
+> export-data.sh -ft sql -sql_dialect table -t /path/export/dir -start_time 1
+Parse error: Missing required option: db
+```
+
+### 2.4 TsFile Format
+
+#### 2.4.1 Command
+
+```Shell
+# Unix/OS X
+> tools/export-data.sh -ft [-sql_dialect] -db -table
+ [-start_time] [-end_time] [-h ] [-p ] [-u ] [-pw ]
+ -t [-pfn ] [-q ] [-timeout ]
+
+# Windows
+> tools\export-data.bat -ft [-sql_dialect] -db -table
+ [-start_time] [-end_time] [-h ] [-p ] [-u ] [-pw ]
+ -t [-pfn ] [-q ] [-timeout ]
+```
+
+#### 2.4.2 TsFile-Specific Parameters
+
+* None
+
+#### 2.4.3 Examples
+
+```Shell
+# Valid Example
+> /tools/export-data.sh -ft tsfile -sql_dialect table -t /path/export/dir -db database1 -start_time 0
+
+# Error Example
+> /tools/export-data.sh -ft tsfile -sql_dialect table -t /path/export/dir -start_time 0
+Parse error: Missing required option: db
+```
diff --git a/src/UserGuide/Master/Table/Tools-System/Data-Import-Tool.md b/src/UserGuide/Master/Table/Tools-System/Data-Import-Tool.md
new file mode 100644
index 000000000..b56e4a4a0
--- /dev/null
+++ b/src/UserGuide/Master/Table/Tools-System/Data-Import-Tool.md
@@ -0,0 +1,185 @@
+# Data Import
+
+## 1. Functional Overview
+The data import tool `import-data.sh/bat` is located in the `tools` directory and can import data in CSV, SQL, and TsFile (an open-source time-series file format) into IoTDB. Its specific functionalities are as follows:
+
+
+
+ File Format
+ IoTDB Tool
+ Description
+
+
+ CSV
+ import-data.sh/bat
+ Can be used for single or batch import of CSV files into IoTDB
+
+
+ SQL
+ Can be used for single or batch import of SQL files into IoTDB
+
+
+ TsFile
+ Can be used for single or batch import of TsFile files into IoTDB
+
+
+
+
+## 2. Detailed Features
+### 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 | - |
+
+### 2.2 CSV Format
+
+#### 2.2.1 Command
+```Shell
+# Unix/OS X
+> tools/import-data.sh -ft [-sql_dialect] -db -table
+ [-h ] [-p ] [-u ] [-pw ]
+ -s [-fd ] [-lpf ] [-aligned ]
+ [-ti ] [-tp ] [-tz ] [-batch ]
+ [-tn ]
+
+# Windows
+> tools\import-data.bat -ft [-sql_dialect] -db -table
+ [-h ] [-p ] [-u ] [-pw ]
+ -s [-fd ] [-lpf ] [-aligned ]
+ [-ti ] [-tp ] [-tz ] [-batch ]
+ [-tn ]
+```
+
+#### 2.2.2 CSV-Specific Parameters
+
+| Short | Full Parameter | Description | Required | Default |
+| ---------------- | ------------------------------- |----------------------------------------------------------| ---------- |-----------------|
+| `-fd` | `--fail_dir` | Directory to save failed files. | No | YOUR_CSV_FILE_PATH |
+| `-lpf` | `--lines_per_failed_file` | Max lines per failed file. | No | `100000` Range: 0 to Integer.Max(2147483647). |
+| `-aligned` | `--use_aligned` | Import as aligned time series. | No | `false` |
+| `-batch` | `--batch_size` | Rows processed per API call. | No | `100000` Range: 0 to Integer.Max(2147483647). |
+| `-ti` | `--type_infer` | Type mapping (e.g., `BOOLEAN=text,INT=long`). | No | - |
+| `-tp` | `--timestamp_precision` | Timestamp precision: `ms`, `us`, `ns`. | No | `ms` |
+
+#### 2.2.3 Examples
+
+```Shell
+# Valid Example
+> tools/import-data.sh -ft csv -sql_dialect table -s ./csv/dump0_0.csv -db database1 -table table1
+
+# Error Example
+> tools/import-data.sh -ft csv -sql_dialect table -s ./csv/dump0_1.csv -table table1
+Parse error: Missing required option: db
+
+> tools/import-data.sh -ft csv -sql_dialect table -s ./csv/dump0_1.csv -db database1 -table table5
+There are no tables or the target table table5 does not exist
+```
+
+#### 2.2.4 Import Notes
+
+1. CSV Import Specifications
+
+- Special Character Escaping Rules: If a text-type field contains special characters (e.g., commas `,`), they must be escaped using a backslash (`\`).
+- Supported Time Formats: `yyyy-MM-dd'T'HH:mm:ss`, `yyyy-MM-dd HH:mm:ss`, or `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
+- Timestamp Column Requirement: The timestamp column must be the first column in the data file.
+
+2. CSV File Example
+
+```sql
+time,region,device,model,temperature,humidity
+1970-01-01T08:00:00.001+08:00,"SH","101","F",90.0,35.2
+1970-01-01T08:00:00.002+08:00,"SH","101","F",90.0,34.8
+```
+
+
+### 2.3 SQL Format
+
+#### 2.3.1 Command
+
+```Shell
+# Unix/OS X
+> tools/import-data.sh -ft [-sql_dialect] -db -table
+ [-h ] [-p ] [-u ] [-pw ]
+ -s [-fd ] [-lpf ] [-tz ]
+ [-batch ] [-tn ]
+
+# Windows
+> tools\import-data.bat -ft [-sql_dialect] -db -table
+ [-h ] [-p ] [-u ] [-pw ]
+ -s [-fd ] [-lpf ] [-tz ]
+ [-batch ] [-tn ]
+```
+
+#### 2.3.2 SQL-Specific Parameters
+
+| Short | Full Parameter | Description | Required | Default |
+| -------------- | ------------------------------- | -------------------------------------------------------------------- | ---------- | ------------------ |
+| `-fd` | `--fail_dir` | Directory to save failed files. | No |YOUR_CSV_FILE_PATH|
+| `-lpf` | `--lines_per_failed_file` | Max lines per failed file. | No | `100000` Range: 0 to Integer.Max(2147483647). |
+| `-batch` | `--batch_size` | Rows processed per API call. | No | `100000` Range: 0 to Integer.Max(2147483647). |
+
+#### 2.3.3 Examples
+
+```Shell
+# Valid Example
+> tools/import-data.sh -ft sql -sql_dialect table -s ./sql/dump0_0.sql -db database1
+
+# Error Example
+> tools/import-data.sh -ft sql -sql_dialect table -s ./sql/dump1_1.sql -db database1
+Source file or directory ./sql/dump1_1.sql does not exist
+
+# When the target table exists but metadata is incompatible or data is malformed, the system will generate a .failed file and log error details.
+# Log Example
+Fail to insert measurements '[column.name]' caused by [data type is not consistent, input '[column.value]', registered '[column.DataType]']
+```
+### 2.4 TsFile Format
+
+#### 2.4.1 Command
+
+```Shell
+# Unix/OS X
+> tools/import-data.sh -ft [-sql_dialect] -db -table
+ [-h ] [-p ] [-u ] [-pw ]
+ -s -os [-sd ] -of [-fd ]
+ [-tn ] [-tz ] [-tp ]
+
+# Windows
+> tools\import-data.bat -ft [-sql_dialect] -db -table
+ [-h ] [-p ] [-u ] [-pw ]
+ -s -os [-sd ] -of [-fd ]
+ [-tn ] [-tz ] [-tp ]
+```
+#### 2.4.2 TsFile-Specific Parameters
+
+| Short | Full Parameter | Description | Required | Default |
+| ----------- | ----------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ----------------- | --------------------------- |
+| `-os` | `--on_success` | Action for successful files: `none`: Do not delete the file. `mv`: Move the successful file to the target directory. `cp`:Create a hard link (copy) of the successful file to the target directory. `delete`:Delete the file. | **Yes** | - |
+| `-sd` | `--success_dir` | Target directory for `mv`/`cp` actions on success. Required if `-os` is `mv`/`cp`. The file name will be flattened and concatenated with the original file name. | Conditional | `${EXEC_DIR}/success` |
+| `-of` | `--on_fail` | Action for failed files: `none`:Skip the file. `mv`:Move the failed file to the target directory. `cp`:Create a hard link (copy) of the failed file to the target directory. `delete`:Delete the file.. | **Yes** | - |
+| `-fd` | `--fail_dir` | Target directory for `mv`/`cp` actions on failure. Required if `-of` is `mv`/`cp`. The file name will be flattened and concatenated with the original file name. | Conditional | `${EXEC_DIR}/fail` |
+| `-tp` | `--timestamp_precision` | TsFile timestamp precision: `ms`, `us`, `ns`. For non-remote TsFile imports: Use -tp to specify the timestamp precision of the TsFile. The system will manually verify if the timestamp precision matches the server. If it does not match, an error will be returned. For remote TsFile imports: Use -tp to specify the timestamp precision of the TsFile. The Pipe system will automatically verify if the timestamp precision matches. If it does not match, a Pipe error will be returned. | No | `ms` |
+
+#### 2.4.3 Examples
+
+```Shell
+# Valid Example
+> tools/import-data.sh -ft tsfile -sql_dialect table -s ./tsfile -db database1 -os none -of none
+
+# Error Example
+> tools/import-data.sh -ft tsfile -sql_dialect table -s ./tsfile -db database1
+Parse error: Missing required options: os, of
+```
diff --git a/src/UserGuide/latest-Table/Tools-System/Data-Export-Tool.md b/src/UserGuide/latest-Table/Tools-System/Data-Export-Tool.md
new file mode 100644
index 000000000..1c564820c
--- /dev/null
+++ b/src/UserGuide/latest-Table/Tools-System/Data-Export-Tool.md
@@ -0,0 +1,146 @@
+# Data Export
+
+## 1. Function Overview
+The data export tool `export-data.sh/bat` is located in the `tools` directory and can export query results from specified SQL statements into CSV, SQL, or TsFile (open-source time-series file format) formats. Its specific functionalities are as follows:
+
+
+
+ File Format
+ IoTDB Tool
+ Description
+
+
+ CSV
+ export-data.sh/bat
+ Plain text format for storing structured data. Must follow the CSV format specified below.
+
+
+ SQL
+ File containing custom SQL statements.
+
+
+ TsFile
+ Open-source time-series file format.
+
+
+
+
+
+## 2. Detailed Features
+### 2.1 Common Parameters
+| Short | Full Parameter | Description | Required | Default |
+| ---------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------- |-----------------------------------------------|
+| `-ft` | `--file_type` | Export file type: `csv`, `sql`, `tsfile`. | **Yes** | - |
+| `-h` | `--host` | Hostname of the IoTDB server. | No | `127.0.0.1` |
+| `-p` | `--port` | Port number of the IoTDB server. | No | `6667` |
+| `-u` | `--username` | Username for authentication. | No | `root` |
+| `-pw` | `--password` | Password for authentication. | No | `root` |
+| `-sql_dialect` | `--sql_dialect` | Select server model : tree or table | No | tree |
+| `-db ` | `--database` | The target database to be exported only takes effect when `-sql_dialect` is of the table type.| Yes when `-sql_dialect = table`| -|
+| `-table`|`--table` | The target table to be exported only takes effect when `-sql_dialect` is of the table type. If the `-q` parameter is specified, this parameter will not take effect. If the export type is tsfile/sql, this parameter is mandatory.| No | - |
+| `-start_time` | `--start_time` |The start time of the data to be exported only takes effect when `-sql_dialect` is of the table type. If `-q` is specified, this parameter will not take effect. The supported time formats are the same as those for the `-tf` parameter.|No | - |
+|`-end_time` |`--end_time` | The end time of the data to be exported only takes effect when `-sql_dialect` is set to the table type. If `-q` is specified, this parameter will not take effect.| No | - |
+| `-t` | `--target` | Target directory for the output files. If the path does not exist, it will be created. | **Yes** | - |
+| `-pfn` | `--prefix_file_name` | Prefix for the exported file names. For example, `abc` will generate files like `abc_0.tsfile`, `abc_1.tsfile`. | No | `dump_0.tsfile` |
+| `-q` | `--query` | SQL query command to execute. | No | - |
+| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (Range: -1~Long max=9223372036854775807) |
+| `-help` | `--help` | Display help information. | No | - |
+
+### 2.2 CSV Format
+#### 2.2.1 Command
+
+```Shell
+# Unix/OS X
+> tools/export-data.sh -ft [-sql_dialect] -db -table
+ [-start_time] [-end_time] [-h ] [-p ] [-u ] [-pw ]
+ -t [-pfn ] [-dt ] [-lpf ] [-tf ]
+ [-tz ] [-q ] [-timeout ]
+# Windows
+> tools\export-data.bat -ft [-sql_dialect] -db -table
+ [-start_time] [-end_time] [-h ] [-p ] [-u ] [-pw ]
+ -t [-pfn ] [-dt ] [-lpf ] [-tf ]
+ [-tz ] [-q ] [-timeout ]
+```
+#### 2.2.2 CSV-Specific Parameters
+
+| Short | Full Parameter | Description | Required | Default |
+| ------------ | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |------------------------------------------|
+| `-dt` | `--datatype` | Whether to include data types in the CSV file header (`true` or `false`). | No | `false` |
+| `-lpf` | `--lines_per_file` | Number of rows per exported file. | No | `10000` (Range:0~Integer.Max=2147483647) |
+| `-tf` | `--time_format` | Time format for the CSV file. Options: 1) Timestamp (numeric, long), 2) ISO8601 (default), 3) Custom pattern (e.g., `yyyy-MM-dd HH:mm:ss`). SQL file timestamps are unaffected by this setting. | No | `ISO8601` |
+| `-tz` | `--timezone` | Timezone setting (e.g., `+08:00`, `-01:00`). | No | System default |
+
+#### 2.2.3 Examples
+
+```Shell
+# Valid Example
+> export-data.sh -ft csv -sql_dialect table -t /path/export/dir -db database1 -q "select * from table1"
+
+# Error Example
+> export-data.sh -ft csv -sql_dialect table -t /path/export/dir -q "select * from table1"
+Parse error: Missing required option: db
+```
+## 2.3 SQL Format
+#### 2.3.1 Command
+```Shell
+# Unix/OS X
+> tools/export-data.sh -ft [-sql_dialect] -db -table
+ [-start_time] [-end_time] [-h ] [-p ] [-u ] [-pw ]
+ -t [-pfn ] [-aligned ]
+ -lpf - [-tf ] [-tz ] [-q ] [-timeout ]
+
+# Windows
+> tools\export-data.bat -ft [-sql_dialect] -db -table
+ [-start_time] [-end_time