Import the CSV File into MySQL Table Using PhpMyAdmin and Query

Step1:   Import the CSV File Using PhpMyAdmin

IMPORT THE CSV FILE INTO MYSQL TABLE
IMPORT THE CSV FILE INTO MYSQL TABLE

Step2: Import the CSV File into MySQL  Using Query :

LOAD DATA INFILE 'c:/tmp/discounts.csv' 
INTO TABLE discounts 
FIELDS TERMINATED BY ',' 
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;

Leave a Reply

Your email address will not be published. Required fields are marked *