Skip to content

Commit 51c8a56

Browse files
authored
Improve migration from from CSV files (#19247) (#19250)
1 parent ed434cd commit 51c8a56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: migrate-from-csv-files-to-tidb.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Put all the CSV files in the same directory. If you need TiDB Lightning to recog
2121
- If a CSV file contains the data for an entire table, name the file `${db_name}.${table_name}.csv`.
2222
- If the data of one table is separated into multiple CSV files, append a numeric suffix to these CSV files. For example, `${db_name}.${table_name}.003.csv`. The numeric suffixes can be inconsecutive but must be in ascending order. You also need to add extra zeros before the number to ensure all the suffixes are in the same length.
2323

24+
TiDB Lightning recursively searches for all `.csv` files in this directory and its subdirectories.
25+
2426
## Step 2. Create the target table schema
2527

2628
Because CSV files do not contain schema information, before importing data from CSV files into TiDB, you need to create the target table schema. You can create the target table schema by either of the following two methods:

0 commit comments

Comments
 (0)