Your task will be to create an API to upload a CSV file with 1000 records, you will have to save the records in a MySQL database, the format of the columns are as given below. code example
Example 1: mysql load data infile csv
LOAD DATA LOCAL INFILE 'abc.csv' INTO TABLE abc
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\r\n'
IGNORE 1 LINES
(col1, col2, col3, col4, col5...);
Example 2: 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;