0

I have the following line to load csv file and insert into one table

LOAD DATA LOCAL INFILE '/var/www/html/portugal.csv' 
IGNORE INTO TABLE sample_upload 
FIELDS TERMINATED BY ',' ENCLOSED BY '\"' 
LINES TERMINATED BY '\n' 
(test_name)

Now it will insert first column into sample_upload.test_name field.

I need to insert each line of csv file into test_name field. Is possible?

Shijin TR
  • 7,516
  • 10
  • 55
  • 122

0 Answers0