1

I've got a CSV file with 20 columns and I have a MySQL table with 18 columns.

The CSV file looks like:

firstColumnEmptyNoName, secondColumnEmptyNoName, column1, column2, ... column18

If delete the firstColumnEmptyNoName and secondColumnEmptyNoName in CSV file the LOAD DATA is worked, Affected rows: 16726.

With the firstColumnEmptyNoName and secondColumnEmptyNoName in CSV file the LOAD DATA is not worked, Affected rows: 0

How to skip columns firstColumnEmptyNoName and secondColumnEmptyNoName in CSV file when importing into MySQL table using LOAD DATA INFILE?

Hamamelis
  • 1,983
  • 8
  • 27
  • 41

0 Answers0