I am importing some data of 20000 rows from a CSV file into Mysql.
Columns in the CSV are in a different order than MySQL table's columns. How to automatically assign columns corresponding to Mysql table columns?
When I execute
LOAD DATA INFILE'abc.csv' INTO TABLE abc
this query adds all data to the first column.
Please suggest auto syntax for importing data to Mysql.