how to import csv file into mysql and build column and rows code example
Example: how to dump .csv file into mysql
LOAD DATA LOCAL INFILE 'c:/country.csv'
INTO TABLE country
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;