diff --git a/migrate-from-csv-files-to-tidb.md b/migrate-from-csv-files-to-tidb.md index 7cfdfdfee140f..73552e7d8ba98 100644 --- a/migrate-from-csv-files-to-tidb.md +++ b/migrate-from-csv-files-to-tidb.md @@ -22,6 +22,8 @@ Put all the CSV files in the same directory. If you need TiDB Lightning to recog - If a CSV file contains the data for an entire table, name the file `${db_name}.${table_name}.csv`. - 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. +TiDB Lightning recursively searches for all `.csv` files in this directory and its subdirectories. + ## Step 2. Create the target table schema 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: