You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tidb-cloud/import-csv-files-serverless.md
+12-14Lines changed: 12 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -115,28 +115,26 @@ To import the CSV files to TiDB Cloud Serverless, take the following steps:
115
115
116
116
5. In the **Destination Mapping** section, specify how source files are mapped to target tables.
117
117
118
-
*The **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is selected by default. If you unselect it, you need to manually configure the mapping rules to associate your source CSV files with the target database and table.
118
+
The **Use [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) for automatic mapping** option is selected by default.
119
119
120
-
*In**Source**, enter file names in the format `[file_name].csv`. For example: `TableName.01.csv`.
121
-
* You can also use wildcards to match multiple files:
120
+
>**Note:**
121
+
>
122
+
> When importing a single file, you can only use the default mapping settings, and the **Source** field cannot be modified.
122
123
123
-
*`my-data?.csv`: Matches all CSV files that start with `my-data` followed by a single character (for example, `my-data1.csv`, `my-data2.csv`).
124
+
- To let TiDB Cloud automatically map all source files that follow the [TiDB Dumpling file naming conventions](/tidb-cloud/naming-conventions-for-data-import.md) to their corresponding tables, keep this option selected andselect**CSV**as the data format.
124
125
125
-
*`my-data*.csv`: Matches all CSV files that start with `my-data` (for example, `my-data-2023.csv`, `my-data-final.csv`).
126
+
- To manually configure the mapping rules to associate your source CSV files with the target database and table, unselect this option, and then fill in the following fields:
126
127
127
-
> Only `*`and`?` wildcards are supported.
128
+
-**Source**: enter the file name pattern in the `[file_name].csv` format. For example: `TableName.01.csv`. You can also use wildcards to match multiple files. Only `*`and`?` wildcards are supported.
128
129
129
-
* If you **use** the naming conventions, all source files that conform to the format will be automatically mapped to their corresponding tables.
130
+
-`my-data?.csv`: matches all CSV files that start with `my-data` followed by a single character, such as`my-data1.csv`and`my-data2.csv`.
131
+
-`my-data*.csv`: matches all CSV files that start with `my-data`, such as`my-data-2023.csv`and`my-data-final.csv`.
130
132
131
-
*Select**CSV**as the data format.
133
+
-**Target Database**and**Target Table**: select the target database and table to import the data to.
132
134
133
-
>**Note:**
134
-
>
135
-
> When importing one file, you can only use mapping settings and the source file cannot be modified.
136
-
137
-
6. Click **Next**, the system will scan the source files accordingly.
135
+
6. Click **Next**. TiDB Cloud scans the source files accordingly.
138
136
139
-
7. Review the scan result, check data files found and target tables to import, and then click **Start Import**.
137
+
7. Review the scan results, checkthe data files found andcorresponding target tables, and then click **Start Import**.
140
138
141
139
8. When the import progress shows **Completed**, check the imported tables.
0 commit comments